17.02.2012, 21:16
Hi,
I've written a simple CI-Server (Continuous Integration Server) for my SAMP-Server. It's a simple shell script called via cronjob which updates the SAMP-Server folder from my SVN repository. If something got updated the script starts the Pawn compiler (pawncc). And after successful compilation it restarts the server if there are no players on it.
I'm using Debian 6 x86 as server OS. The compiler is running native without wine.
Now my problem: Sometimes the Linux compiler shows me warnings or errors which I'm not getting when I compile the script on Windows with the Windows Pawn compiler.
The compiler version of the Linux compiler is the same as the Windows compiler. Compiler options are also the same.
The biggest problem: The Linux compiler doesn't include a file if another file with the same name but in another folder is already included.
Example: I'm including "includes/irc.inc" and later in my pwn file "includes/grgserver/irc.inc"
In the first include file were the natives of the IRC plugin I'm using. The second include file contains my IRC callbacks like "IRC_OnConnect".
On Windows the Pawn compiler includes both files. On Linux only the first irc.inc is included (/includes/irc.inc).
The version of both compilers are the same (3.2.3664)... so what is the problem?
I've written a simple CI-Server (Continuous Integration Server) for my SAMP-Server. It's a simple shell script called via cronjob which updates the SAMP-Server folder from my SVN repository. If something got updated the script starts the Pawn compiler (pawncc). And after successful compilation it restarts the server if there are no players on it.
I'm using Debian 6 x86 as server OS. The compiler is running native without wine.
Now my problem: Sometimes the Linux compiler shows me warnings or errors which I'm not getting when I compile the script on Windows with the Windows Pawn compiler.
The compiler version of the Linux compiler is the same as the Windows compiler. Compiler options are also the same.
The biggest problem: The Linux compiler doesn't include a file if another file with the same name but in another folder is already included.
Example: I'm including "includes/irc.inc" and later in my pwn file "includes/grgserver/irc.inc"
In the first include file were the natives of the IRC plugin I'm using. The second include file contains my IRC callbacks like "IRC_OnConnect".
On Windows the Pawn compiler includes both files. On Linux only the first irc.inc is included (/includes/irc.inc).
The version of both compilers are the same (3.2.3664)... so what is the problem?