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

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

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.
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.
Thanks helios.
Topic archived. No new replies allowed.