can't compile on linux
Hi, there's a problema when compiling on linux:
g++ -std=c++0x -I. -Icommon -Imath -Iinclude -c game/game.cpp -o game/game.o game/game.cpp: In member function ‘virtual bool CGame::MouseInput(int, tinker_mouse_state_t)’: game/game.cpp:299:10: error: ‘sleep’ was not declared in this scope sleep(1); ^ make: *** [game/game.o] Error 1
Try #include <unistd.h> at the top
Now I got this:
/usr/bin/ld: common/platform_linux.o: undefined reference to symbol 'XGetWindowAttributes' //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [mfgd] Error 1
Yea sorry I never maintained the linux port very well. You probably have to include -libX or -libXrandr or something.