Linking dynamic libs in DDD/GDB

N

Neo

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
 
R

red floyd

Neo said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top