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
gcc version: 4.5.2 (from deb package)
command line: gcc -I /usr/include/freetype2 -o ~/BlocksWorld/BlocksWorld 
Src/*.cpp Src/Linux/*.cpp Src/GUI/*.cpp -lpng -lGL -lGLU -lftgl

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/591819

Title:
  compiled program segfault when -O0 is used to compile

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-defaults/+bug/591819/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to