• Forum
  • Lounge
  • Could not find object file on gdb for bo

 
Could not find object file on gdb for boost::regex

Aug 10, 2010 at 7:41am
Hi Guys,

I am trying to debug a program using gdb. I am using Boost regex.hpp in some of my .hh files. As I do gdb ./a.out. It give me warnings like

arning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_boost/work/boost_1_43_0/bin.v2/libs/regex/build/darwin-4.2.1/release/regex.o" - no debug information available for "libs/regex/src/../src/regex.cpp".


There are no other warnings like this. Can someone please point me what I am doing wrong?

Thanks a lot.
Aug 10, 2010 at 8:36am
Wow. That's some path.

The warning is saying that you don't have debugging symbols for boost::regex, which means the debugger can't know, for example, what symbols (functions, global data, etc.) are defined in the library. You can ignore it.
Aug 10, 2010 at 4:47pm
Thanks helios.
Topic archived. No new replies allowed.