Comments (4)
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.
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.
"-;+ -(+ -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.
Yeah, it's works. Thank you very much!
from compiler.
Related Issues (20)
- Remove `-Z` HOT 1
- Stop Compiler
- Samp includes error HOT 1
- Packed string access in enum arrays
- Optimization of conditional expressions
- Can't compile on linux! HOT 2
- when to wait for the next build? HOT 1
- Classes and objects in PAWN? HOT 3
- Compiler giving false positive warnings (240) HOT 4
- Named only parameters. HOT 3
- External natives are always in the header, even when not used. HOT 2
- Constant "Run time error 19: "File or function is not found"" error
- default include path for standard libraries? HOT 1
- The Application was unable to start correctly.(0xc000007b) HOT 1
- fatal error 100: cannot read from file: "Pawn.CMD" HOT 1
- fatal error 100: cannot read from file: "interception"
- [DIY] Build from source on Apple Chip M1 using rosetta2 HOT 6
- `initialization data exceeds declared size` when using progressive initialization with an array size 1
- `const` can be specified for a function argument more than once
- error compile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler.