When I compile my code, if I compile it -O2, it compiles and runs fine. if I
compile the code without it, my program segfaults while rendering text with FTGL. I've made no changes to anything in between compiles. Same FTGL code works fine in win32 (vs2010).
When I compile my code, if I compile it -O2, it compiles and runs fine. if I
compile the code without it, my program segfaults while rendering text with FTGL. I've made no changes to anything in between compiles. Same FTGL code works fine in win32 (vs2010).
system: ubuntu 11.04 & 10.04 freetype2 -o ~/BlocksWorld/ BlocksWorld Src/*.cpp Src/Linux/*.cpp Src/GUI/*.cpp -lpng -lGL -lGLU -lftgl
gcc version: 4.5.2 (from deb package)
command line: gcc -I /usr/include/