Jump to content
  • 0

Compile Error (usleep was not declared)


WildChild

Question

Hi,

I'm getting a compile error on g3dlite :

OS : GNU/Linux Debian Wheezy x86_64 with gcc 4.7.1

mangos : server 12176 with scriptdev2 2073

cmake : -DDEBUG=0 -DPCH=0 -DACE_USE_EXTERNAL=1 -DTBB_USE_EXTERNAL=1

In file included from /usr/src/mangos/dep/include/g3dlite/G3D/Random.h:17:0,

from /usr/src/mangos/dep/include/g3dlite/G3D/Vector3.h:19,

from /usr/src/mangos/dep/include/g3dlite/G3D/AABox.h:19,

from /usr/src/mangos/dep/src/g3dlite/AABox.cpp:11:

/usr/src/mangos/dep/include/g3dlite/G3D/GMutex.h: In member function ‘bool G3D::Spinlock::lock()’:

/usr/src/mangos/dep/include/g3dlite/G3D/GMutex.h:51:25: error: ‘usleep’ was not declared in this scope

make[2]: *** [dep/src/g3dlite/CMakeFiles/g3dlite.dir/AABox.cpp.o] Erreur 1

make[1]: *** [dep/src/g3dlite/CMakeFiles/g3dlite.dir/all] Erreur 2

make: *** [all] Erreur 2

Add

#include <unistd.h>

in file /usr/src/mangos/dep/include/g3dlite/G3D/GMutex.h solved the problem

Is this a known error?

Regards

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use