User forums > Using Code::Blocks
Very Simple Debugger Issue
rhf:
Try turning off the optimize option:
Project->Build options...->Compiler Flags -> Uncheck Optimize fully [-03]
mandrav:
--- Quote from: solarwind on June 21, 2008, 05:54:53 pm ---It IS building with -g:
--- Code: ----------------- Build: Debug in Derek_Engine ---------------
mingw32-g++.exe -Wall -fexceptions -g -march=i686 -O3 -g -c "C:\Documents and Settings\Administrator\My Documents\CppWorkspace\Derek_Engine\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe -o bin\Debug\Derek_Engine.exe obj\Debug\main.o
Output size is 585.07 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End code ---
--- End quote ---
You do realize that -O3 will probably eliminate/alter a lot of the code and, obviously, you won't be able to put breakpoints on it?
solarwind:
--- Quote from: rhf on June 21, 2008, 10:13:31 pm ---Try turning off the optimize option:
Project->Build options...->Compiler Flags -> Uncheck Optimize fully [-03]
--- End quote ---
--- Quote from: mandrav on June 21, 2008, 11:24:33 pm ---
--- Quote from: solarwind on June 21, 2008, 05:54:53 pm ---It IS building with -g:
--- Code: ----------------- Build: Debug in Derek_Engine ---------------
mingw32-g++.exe -Wall -fexceptions -g -march=i686 -O3 -g -c "C:\Documents and Settings\Administrator\My Documents\CppWorkspace\Derek_Engine\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe -o bin\Debug\Derek_Engine.exe obj\Debug\main.o
Output size is 585.07 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End code ---
--- End quote ---
You do realize that -O3 will probably eliminate/alter a lot of the code and, obviously, you won't be able to put breakpoints on it?
--- End quote ---
I totally did not realize that that could have been the issue. Thanks a lot! That fixed it!
Navigation
[0] Message Index
[*] Previous page
Go to full version