Debugging with linked shared libraries ....

Roberto Brunelli brunelli@itc.it
Tue Oct 25 13:46:00 GMT 2005


		I apologize if this is not the correct place for posting.

I would like to debug a c++ program that links shared libraries (files) 
in non standard places:

  1. I set the LD_LIBRARY_PATH so that the program runs fine from my (c)sh

  2. I execute

     gdb myProg

  3. but when I 'run'

  > error while loading shared libraries: librandomLib.so: cannot open
  > shared object file: No such file or directory

  4. If I make the program generate a core and perform

     gdb myProg core.xxxx

     I read

  > Reading symbols from
  > >/hardmnt/..../randomLib/librandomLib.so...done.

    and I am actually able to list the functions within the library and 
to access data within the code of myProg.

What am I doing wrong??

Thanx a lot for any help!


-- 
	<r/>

| Roberto Brunelli, Research Scientist
| TeV Group - ITC-irst
|
|  'You cannot manipulate a marionette with only one string'
|                    from Chapterhouse Dune,  by F. Herbert
         							



More information about the Gdb mailing list