Author Topic: no debugging symbols found  (Read 18561 times)

Offline lehe

  • Multiple posting newcomer
  • *
  • Posts: 35
no debugging symbols found
« on: February 19, 2009, 03:59:00 pm »
Hi,
I have a console application in CB. Yesterday I switch to compile my code with gcc and debug with gdb in terminal emulator. After that, I switched back to CB. Now no matter how I clean and rebuild with -g, I cannot actually debug, e.g., stop at breakpoints.

I got the info "Cleaned "\'absurdity_under_CodeBlocks - Release' Done" when clean, and it does not mention to clean other object files and Debug directory. The executable in Debug remain the previous one. When debug, I got "No symbol table is loaded.  Use the 'file' command. (no debugging symbols found)". By google, this usually happens when -g is missing during compilation. However I do check Project->Build Options->Compiler Settings->Compiler Flags->Produce Debug Symbols(-g) for both myprojectname "absurdity_under_CodeBlocks" and "Debug" on the left panel in the Project Build Options dialog.

I am not sure my problem is related to me also building my project using gcc and debugging with gdb in terminal. However I did as such before and everything was fine then.

Thanks for your help!
« Last Edit: February 19, 2009, 05:08:51 pm by lehe »

Offline lehe

  • Multiple posting newcomer
  • *
  • Posts: 35
Re: no debugging symbols found
« Reply #1 on: February 19, 2009, 04:50:26 pm »
There is no executable generated under bin/Debug except bin/Release as build log says: "Linking console executable: bin/Release/absurdity_under_CodeBlocks". However I did choose both Release and Debug when creating the application.

The debugger log also says:
"Command-line: /usr/bin/gdb -nx -fullname  -quiet -args bin/Release/absurdity_under_CodeBlocks
Working dir : /home/lehe/absurdity_under_CodeBlocks/"
Should "bin/Release/myapp" in the command-line be "bin/Debug/absurdity_under_CodeBlocks"?

« Last Edit: February 19, 2009, 05:06:15 pm by lehe »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: no debugging symbols found
« Reply #2 on: February 19, 2009, 04:56:00 pm »
Is the Output filename in the projects Properties (tab Build targets) set correctly for the debug target ?

Offline lehe

  • Multiple posting newcomer
  • *
  • Posts: 35
Re: no debugging symbols found
« Reply #3 on: February 19, 2009, 05:04:42 pm »
Yes, I think so.
For debug, bin/Debug/absurdity_under_CodeBlocks
For release, bin/Release/absurdity_under_CodeBlocks

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: no debugging symbols found
« Reply #4 on: February 19, 2009, 06:01:47 pm »
I do check Project->Build Options->Compiler Settings->Compiler Flags->Produce Debug Symbols(-g)
Just my 2 cents: This is OK, but if you have in addition the "-s" (strip symbols) linker switch the symbols are being removed again. This once happened to me...

Enable full compiler logging to verify... (see my sig...)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline lehe

  • Multiple posting newcomer
  • *
  • Posts: 35
Re: no debugging symbols found
« Reply #5 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++.

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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: no debugging symbols found
« Reply #6 on: February 19, 2009, 06:34:14 pm »
Change "Settings -> Compiler and debugger... -> Global compiler settings -> <the_compiler_you_use> -> Other settings(rightmost tab) -> Compiler logging" to "Full commandline".

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: no debugging symbols found
« Reply #7 on: February 19, 2009, 06:35:05 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++.
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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline lehe

  • Multiple posting newcomer
  • *
  • Posts: 35
Re: no debugging symbols found
« Reply #8 on: February 19, 2009, 06:58:30 pm »
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

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
 
« Last Edit: February 19, 2009, 07:01:18 pm by lehe »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: no debugging symbols found
« Reply #9 on: February 19, 2009, 08:44:23 pm »
Code
g++ -L/usr/local/src/ann_1.1.1/lib [...] -s [...] /usr/local/src/ann_1.1.1/lib/libANN.a 
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ