I am working in Eclipse: Helios Service Release 1 using Eclipse CDT compiling using g++
I have just started to have a go at using Shared Libraries in my projects but
You just need to set LD_LIBRARY_PATH
to include the folder in which the shared libraries are.
Something like this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/user/lib/
Run ldconfig
as root to update the cache - if that still doesn't help, you need to add the path to the file ld.so.conf
(just type it in on its own line) or better yet, add the entry to a new file (easier to delete) in directory ld.so.conf.d
.