Code Monkey home page Code Monkey logo

Comments (4)

Zeex avatar Zeex commented on August 29, 2024

Are you compiling from the same directory where compile.sh is? Try replacing relative paths with absolute ones, that definitely should help. You can get the absolute path to compiler.sh from within the script itself via something like $(dirname $(readlink $0)) (for example, see here) and append your include directory to that.

from compiler.

ziggi avatar ziggi commented on August 29, 2024

Are you compiling from the same directory where compile.sh is?

Yes.

Try replacing relative paths with absolute ones, that definitely should help. You can get the absolute path to compiler.sh from within the script itself via something like $(dirname $(readlink $0)) (for example, see here) and append your include directory to that.

I tried it, but it did not help.

I made small repo for test it: https://github.com/ziggi/pawn_linux_test
My new !compile.sh:

#/bin/bash

export LD_LIBRARY_PATH=$(pwd)"/compiler/:$LD_LIBRARY_PATH"

NAME="test"

include_path="$(dirname $(readlink -f $NAME))/compiler/includes"

./compiler/pawncc "-;+ -(+ -i$include_path" sources/$NAME.pwn

if [ $(stat -c%s "$NAME.amx") -gt 0 ];
then
    mv $NAME.amx gamemodes/
else
    rm $NAME.amx
fi

from compiler.

Zeex avatar Zeex commented on August 29, 2024
"-;+ -(+ -icompiler/includes"

You can't take multiple arguments in quotes like that, they will be treated as one string. Try this instead:

"-;+" "-(+" "-icompiler/includes"

from compiler.

ziggi avatar ziggi commented on August 29, 2024

Yeah, it's works. Thank you very much!

from compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.