1

Topic: Error in compiling on unix

src/game/server/player.cpp:15: warning: ignoring #pragma comment
In file included from /usr/include/fcntl.h:34,
                 from /usr/local/include/my_global.h:348,
                 from src/game/server/player.cpp:10:
/usr/include/bits/fcntl.h:264: error: 'SSIZE_T' does not name a type
/usr/include/bits/fcntl.h:274: error: 'SSIZE_T' does not name a type
/usr/include/bits/fcntl.h:278: error: 'SSIZE_T' does not name a type
/usr/include/bits/fcntl.h:283: error: 'SSIZE_T' does not name a type
In file included from src/game/server/player.cpp:10:
/usr/local/include/my_global.h: In function 'double rint(double)':
/usr/local/include/my_global.h:1459: error: 'double rint(double)' was declared 'extern' and later 'static'
/usr/include/bits/mathcalls.h:280: error: previous declaration of 'double rint(double)'

On windows everything compiles fine.

2

Re: Error in compiling on unix

Which compiler, which operating system?
Unix? Is that AT&T Unix, Linux, OS X? There's a ton of unix-like systems.
Also which source? Is it the newest from github or 0.6.1? Both compile fine for me on Archlinux with gcc.

3 (edited by Matodor 2013-01-26 09:33:46)

Re: Error in compiling on unix

BotoX wrote:

Which compiler, which operating system?
Unix? Is that AT&T Unix, Linux, OS X? There's a ton of unix-like systems.
Also which source? Is it the newest from github or 0.6.1? Both compile fine for me on Archlinux with gcc.

OS - Debian-6.0-i386, it's 0.6.1 with my mysql code. On the other Debian machine - compiled.
All the necessary libraries and includes added.

Linux version 2.6.32-042stab061.2 (root@rh6-build-x64) (gcc version 4.4.6 201203 05 (Red Hat 4.4.6-4) (GCC) )
Where is compiled:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-41squeeze2) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) )

.... i fix it.
Need install libmysqlclient-dev -_- smile

4

Re: Error in compiling on unix

Matodor wrote:

Linux version 2.6.32-042stab061.2 (root@rh6-build-x64) (gcc version 4.4.6 201203 05 (Red Hat 4.4.6-4) (GCC) )
Where is compiled:
Linux version 2.6.32-5-amd64 (Debian 2.6.32-41squeeze2) (dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) )

I suggest you to update your servers :<