Hi, guys
My OS is Ubuntu 10.04. Since the default gcc version 4.4 which does not support C++11 very well, I installed the latest gcc 4.8.0 in /usr/local. Then I installed codeblocks 12.11 and I set /usr/local/ as the complier directory. After that, something rather strange happened. When I put some breakpoints in my project and tried to debug, the program did not stop and I just saw the console flash. My project is in /home/qtl/C++. There is no space or other invalid characters. Then I changed my compiler directory to /usr/, everything works fine. After that, I installed the latest gdb 7.5 in /usr/local and changed complier directory back to /usr/local. All works fine. Anyone know why such thing happened?

Is it ture that gcc and gdb has to be installed in the same directory?