User forums > Using Code::Blocks

no debugging symbols found

<< < (2/2)

lehe:
What's the equivalence in SVN 5456 for "Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line""?
It is unlikely "Settings->Compiler & Debugger->Compiler Settings->Other Options", which is the options for g++.

I think my problem might be why only executable of release but not debug version is generated and debugged?

Jenna:
Change "Settings -> Compiler and debugger... -> Global compiler settings -> <the_compiler_you_use> -> Other settings(rightmost tab) -> Compiler logging" to "Full commandline".

MortenMacFly:

--- Quote from: lehe on February 19, 2009, 06:26:13 pm ---What's the equivalence in SVN 5456 for "Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line""?
It is unlikely "Settings->Compiler & Debugger->Compiler Settings->Other Options", which is the options for g++.

--- End quote ---
I don't understand what you mean. The Tab is called "Other options" but it's per-compiler. So each compiler has as first option (a combo-box): "Compiler logging" which you please set to "Full command line". Then post the log and/or inspect yourself.

Concerning the build: The target you select is the target that will be build. Except if you have setup/selected a virtual target which may include 1..n "usual" targets. Please make more clear what exactly you are trying to do... It's hard to understand... at least for me...

lehe:
Thanks! I am not aware of when "Select target" is magically changed to "Release". Now I switch it back to "Debug". I have the debug information from building now.

However, while debugging, the running of the executable does not stop at breakpoints. Here goes debug log:

--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: /usr/local/src/ann_1.1.1/src
Adding source dir: /home/lehe/absurdity_under_CodeBlocks/
Adding source dir: /home/lehe/absurdity_under_CodeBlocks/
Adding file: bin/Debug/absurdity_under_CodeBlocks
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.8-debian
No symbol table is loaded.  Use the "file" command.
No symbol table is loaded.  Use the "file" command.
(no debugging symbols found)
Program received signal SIGINT, Interrupt.
In ?? () ()
Debugger finished with status 0

--- End code ---

If it helps, here is build log:

--- Code: ----------------- Clean: Debug in absurdity_under_CodeBlocks ---------------

Cleaned "absurdity_under_CodeBlocks - Debug"

-------------- Build: Debug in absurdity_under_CodeBlocks ---------------

g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/absurdity.cc -o obj/Debug/absurdity.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/bayesian_classifier.cc -o obj/Debug/bayesian_classifier.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/boosted_classifier.cc -o obj/Debug/boosted_classifier.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/classifier.cc -o obj/Debug/classifier.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/classifier_reader.cc -o obj/Debug/classifier_reader.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/discrete_density.cc -o obj/Debug/discrete_density.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/error_rates.cc -o obj/Debug/error_rates.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/fusion_sort.cc -o obj/Debug/fusion_sort.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/global.cc -o obj/Debug/global.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/jpeg_misc.cc -o obj/Debug/jpeg_misc.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/k_nearest_neighbor.cc -o obj/Debug/k_nearest_neighbor.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/misc.cc -o obj/Debug/misc.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/naive_bayesian_classifier.cc -o obj/Debug/naive_bayesian_classifier.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/param_parser.cc -o obj/Debug/param_parser.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/progress_bar.cc -o obj/Debug/progress_bar.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/rgb_image.cc -o obj/Debug/rgb_image.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/rgb_image_subpixel.cc -o obj/Debug/rgb_image_subpixel.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/rubber_classifier.cc -o obj/Debug/rubber_classifier.o
/home/lehe/absurdity_under_CodeBlocks/rubber_classifier.cc:297:2: warning: #warning Test code added on 2008 Dec 19 22:18:00
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/stump.cc -o obj/Debug/stump.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/tools.cc -o obj/Debug/tools.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette.cc -o obj/Debug/vignette.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator.cc -o obj/Debug/vignette_generator.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator_cross_square.cc -o obj/Debug/vignette_generator_cross_square.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator_multiparts.cc -o obj/Debug/vignette_generator_multiparts.o
/home/lehe/absurdity_under_CodeBlocks/vignette_generator_multiparts.cc: In member function ‘scalar_t VignetteGeneratorMultiparts::log_proba_given_class_1(Vignette*)’:
/home/lehe/absurdity_under_CodeBlocks/vignette_generator_multiparts.cc:218: warning: control reaches end of non-void function
/home/lehe/absurdity_under_CodeBlocks/vignette_generator_multiparts.cc: In member function ‘scalar_t VignetteGeneratorMultiparts::log_proba_given_class_0(Vignette*)’:
/home/lehe/absurdity_under_CodeBlocks/vignette_generator_multiparts.cc:215: warning: control reaches end of non-void function
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator_pseudo_faces.cc -o obj/Debug/vignette_generator_pseudo_faces.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator_scrambler.cc -o obj/Debug/vignette_generator_scrambler.o
g++ -Wall -g -fexceptions  -Wall -g   -Wall -g   -I/usr/local/src/ann_1.1.1/include -I/usr/local/include -I/usr/include -I/usr/include/opencv -I/usr/include/atk-1.0 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -c /home/lehe/absurdity_under_CodeBlocks/vignette_generator_templates.cc -o obj/Debug/vignette_generator_templates.o
g++ -L/usr/local/src/ann_1.1.1/lib -L/usr/local/lib -L/usr/lib  -o bin/Debug/absurdity_under_CodeBlocks obj/Debug/absurdity.o obj/Debug/bayesian_classifier.o obj/Debug/boosted_classifier.o obj/Debug/classifier.o obj/Debug/classifier_reader.o obj/Debug/discrete_density.o obj/Debug/error_rates.o obj/Debug/fusion_sort.o obj/Debug/global.o obj/Debug/jpeg_misc.o obj/Debug/k_nearest_neighbor.o obj/Debug/misc.o obj/Debug/naive_bayesian_classifier.o obj/Debug/param_parser.o obj/Debug/progress_bar.o obj/Debug/rgb_image.o obj/Debug/rgb_image_subpixel.o obj/Debug/rubber_classifier.o obj/Debug/stump.o obj/Debug/tools.o obj/Debug/vignette.o obj/Debug/vignette_generator.o obj/Debug/vignette_generator_cross_square.o obj/Debug/vignette_generator_multiparts.o obj/Debug/vignette_generator_pseudo_faces.o obj/Debug/vignette_generator_scrambler.o obj/Debug/vignette_generator_templates.o   -static -static -s  /usr/local/lib/libjpeg.a /usr/local/lib/libpng.a /usr/local/lib/zlib/libz.a /usr/lib/libjpeg.a /usr/local/lib/libpng.a /usr/local/lib/zlib/libz.a /usr/local/src/ann_1.1.1/lib/libANN.a
Output size is 1.37 MB
Process terminated with status 0 (0 minutes, 15 seconds)
0 errors, 3 warnings
 

--- End code ---

MortenMacFly:

--- Quote from: lehe on February 19, 2009, 06:58:30 pm ---
--- Code: ---g++ -L/usr/local/src/ann_1.1.1/lib [...] -s [...] /usr/local/src/ann_1.1.1/lib/libANN.a

--- End code ---

--- End quote ---
You see: I told you what you do wrong but it seems are not able to see:
You do strip the symbols in the linking step. The debugger is right therefore - there are no debugging symbols in your executable.
Remove the linker option "-s" and you are done.

Next time please listen to what we say and help yourself. We cannot solve everybodies problems to an extend like this.

Topic locked.

Navigation

[0] Message Index

[*] Previous page

Go to full version