Connecting Tech Pros Worldwide Help | Site Map

Linking dynamic libs in DDD/GDB

  #1  
Old January 17th, 2008, 03:55 PM
Neo
Guest
 
Posts: n/a
Hi,
I am trying to debug a piece of code which is giving the error as
'illegal instruction' when executed. But I am having trouble while
using GDB or DD because of this error-
"loading shared libraries: libstdc++.so.6: cannot open shared object
file: No such file or directory"
I have the path to the above shared lib in my LD_LIBRARY_PATH but gdb/
dd doesn't seem to get it, what could be the reason?
Can't this library be linked statically because I think it is only the
std io and string libs in my code which needs it.

Thanks,
Neo
  #2  
Old January 17th, 2008, 04:55 PM
red floyd
Guest
 
Posts: n/a

re: Linking dynamic libs in DDD/GDB


Neo wrote:
Quote:
Hi,
I am trying to debug a piece of code which is giving the error as
'illegal instruction' when executed. But I am having trouble while
using GDB or DD because of this error-
"loading shared libraries: libstdc++.so.6: cannot open shared object
file: No such file or directory"
I have the path to the above shared lib in my LD_LIBRARY_PATH but gdb/
dd doesn't seem to get it, what could be the reason?
Can't this library be linked statically because I think it is only the
std io and string libs in my code which needs it.
>
Wrong group. Try gnu.g++.help.
Closed Thread