Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gdb debugger trouble

Status
Not open for further replies.

solled

Programmer
Nov 3, 2003
6
0
0
US
Hi, I am able to run my program (resulting in a fatal error), but when I try to use gdb it doesn't even run. I made sure to compile with the -g flag. Thanks for helping.

Here's what I get:

compserv1.3 gdb testSymTab
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris2"...
(gdb) run
Starting program: /home/stufs1/c504/OLD/a1/src/testSymTab
ld.so.1: /home/stufs1/c504/OLD/a1/src/testSymTab: fatal: libstdc++.so.5: open failed: No such file or directory

Program terminated with signal SIGKILL, Killed.
The program no longer exists.
(gdb)
 
Make sure your LD_LIBRARY_PATH is set correctly. If you type ldd /home/stufs1/c504/OLD/a1/src/testSymTab, it will tell you which libraires it can find and which ones it can't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top