c++ - Eclipse CDT Auto Include Shared Libraries -


I am working in Eclipse: Using the G ++ using the Haloos Service Release 1 Eclipse CDT

I have just started going to use shared libraries in my projects, but there is a slight problem. I have three projects: A, B and CA and B are both shared libraries and C is an executable .

Under eclipse I have referred to A and B from C and C and runs correctly but when I try and generate the program manually run out of eclipse, i will get the following error :

" Error while loading the shared library: libA.so: can not open the shared object file: no such file or directory " < P> I tried to run ASO BSO and C in the same folder I got it and I got the same error on running C.

Can I get an eclipse to create my project with all the files in one place and whenever I am taking them to a new place, can they still run? ?

run ldconfig as root to update the cache - If that still does not help, then you should file Ld.so.conf (just type it on your line) or better yet, the directory ld.so.conf.d < Add a new file (easy to delete) in the entry> Code.

Comments