User forums > Using Code::Blocks

DEBUGGING problem

<< < (3/4) > >>

Skeezix:
try this file the first one is wrong

[attachment deleted by admin]

killerbot:
I tried your project, worked perfectly (on OpenSuse 10.2).
Your project file looks OK, so those settings are ok.


Could you post the full building log.
To see this do : Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"

and then do rebuild all and paste the build log.

Skeezix:

--- Quote from: killerbot on April 12, 2008, 10:05:36 am ---I tried your project, worked perfectly (on OpenSuse 10.2).
Your project file looks OK, so those settings are ok.


Could you post the full building log.
To see this do : Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"

and then do rebuild all and paste the build log.

--- End quote ---

Building Log:

--- Quote ---mingw32-g++.exe -Wall -g -fexceptions  -g  -O1 -O  -g    -c "C:\IDEandCompilers\CodeBlocks\PROJS\Sieve of Eratosthenes\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe  -o "bin\Debug\Sieve of Eratosthenes.exe" obj\Debug\main.o   -s 
Output size is 270.50 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings

--- End quote ---

Also here are the info he debugger(log) ouputed:

--- Quote ---Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\IDEandCompilers\CodeBlocks\PROJS\Sieve of Eratosthenes\
Adding source dir: C:\IDEandCompilers\CodeBlocks\PROJS\Sieve of Eratosthenes\
Adding file: bin\Debug\Sieve of Eratosthenes.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
(no debugging symbols found)
Debugger name and version: GNU gdb 6.7.50.20071127
No symbol table is loaded.  Use the "file" command.
Child process PID: 3552
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program exited normally.
Debugger finished with status 0

--- End quote ---

ironhead:

--- Quote from: Skeezix on April 12, 2008, 01:40:41 pm ---Building Log:

--- Quote ---mingw32-g++.exe -Wall -g -fexceptions  -g  -O1 -O  -g    -c "C:\IDEandCompilers\CodeBlocks\PROJS\Sieve of Eratosthenes\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe  -o "bin\Debug\Sieve of Eratosthenes.exe" obj\Debug\main.o   -s 
Output size is 270.50 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings

--- End quote ---

--- End quote ---

You are stripping the debug symbols from your executable when you are linking (as MortenMacFly menitoned, see the '-s' above).

Skeezix:
how do i turn it off...i already did the Project->Build Options->Compiler settings thing

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version