Problem building 8788: animation.cpp.o
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Stratagus |
Fix Released
|
Undecided
|
cybermind |
Bug Description
Building 8788 on OS X Mavericks, getting the following error:
...
[ 10%] Building CXX object CMakeFiles/
/Network/
implicit conversion of NULL constant to 'char' [-Wnull-conversion]
/Network/
use of undeclared identifier 'atoi'
/Network/
use of undeclared identifier 'atoi'
/Network/
use of undeclared identifier 'atoi'
/Network/
use of undeclared identifier 'atoi'
return atoi(parseint);
^
1 warning and 4 errors generated.
make[3]: *** [CMakeFiles/
make[2]: *** [CMakeFiles/
make[1]: *** [CMakeFiles/
make: *** [stratagus] Error 2
Julios-iMac27:build julio$
Related branches
Changed in stratagus: | |
status: | Fix Committed → Fix Released |
milestone: | none → 2.3 |
As a hack, I added the following to stratagus.h:
#include "stdlib.h"
which got me past the atoi() problem, but then I ran into another problem:
[ 85%] Building CXX object CMakeFiles/ stratagus. dir/src/ ui/mouse. cpp.o Servers/ server. private/ NetworkUsers/ julio/Developme nt/Stratagus_ Wargus/ stratagus. 8886/src/ ui/mouse. cpp:1873: 11: error: no member named 'abs' in namespace 'std'; did you CursorStartScre enPos.x - CursorScreenPos.x)
^~~~ ~~~~
abs stdlib. h:129:6: note: 'abs' declared here Servers/ server. private/ NetworkUsers/ julio/Developme nt/Stratagus_ Wargus/ stratagus. 8886/src/ ui/mouse. cpp:1874: 11: error: no member named 'abs' in namespace 'std'; did you
|| 1 < std::abs( CursorStartScre enPos.y - CursorScreenPos.y)) {
^~~~ ~~~~
abs stdlib. h:129:6: note: 'abs' declared here
/Network/
mean simply 'abs'?
if (1 < std::abs(
/usr/include/
int abs(int) __pure2;
^
/Network/
mean simply 'abs'?
/usr/include/
int abs(int) __pure2;
^
Removing the "std::" from the abs() in ui/mouse.cpp allowed me to finally completely build stratagus (with about a dozen warnings.)
Problems still...
Game starts okay, can navigate menus, can even create a networked game and others can join... HOWEVER... as soon as game starts it crashes. Happens in both multi and single player: as soon as game starts window disappears.