It doesn't sound like in Emacs problem. Does
ldd /mnt/sda5/Programming/prg/src/prg
find libmisc.so?
What happens if you run gdb from the command line? If you start Emacs from
the desktop, LD_LIBRARY_PATH might not be set.
$MYPATH/prg/src and $MYPATH/misc/src look like src folders. It's usual to
to put executables and shared objects in bin and lib directories respectively.
--
Nick http://www.inet.net.nz/~nickrob
If you need to set this or some other environment variables, you can also use
the "set environment" command from gdb:
set environment FOO=foo
Regards,
Alberto