Page 1 of 1

[335] GCC compile error in p_mobj

Posted: Fri May 29, 2009 23:15
by Agent ME
[ 34%] Building CXX object src/CMakeFiles/zdoom.dir/p_mobj.o
/home/chris/Desktop/gzdoom_svn/src/trunk/src/p_mobj.cpp: In function ‘bool P_HitWater(AActor*, sector_t*, fixed_t, fixed_t, fixed_t, bool)’:
/home/chris/Desktop/gzdoom_svn/src/trunk/src/p_mobj.cpp:4545: error: jump to label ‘foundone’
/home/chris/Desktop/gzdoom_svn/src/trunk/src/p_mobj.cpp:4528: error: from here
/home/chris/Desktop/gzdoom_svn/src/trunk/src/p_mobj.cpp:4535: error: crosses initialization of ‘sector_t* hsec’
make[2]: *** [src/CMakeFiles/zdoom.dir/p_mobj.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
The current revision of zdoom compiles fine in GCC, and using zdoom's p_mobj.cpp still gives the same error (the only difference is the lack of some GL stuff), so I guess the problem is somewhere else than this file.

Re: [335] GCC compile error in p_mobj

Posted: Sat Jul 25, 2009 9:17
by Graf Zahl
The reason why it works in ZDoom is that the relevant code is disabled.