[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.cdt] Re: error while loading shared libraries

franklyn wrote:
hi all,

i just started with programming c++ under eclipse and everything works fine while compiling and linking. all libraries and headers are found. when i try to run the program from eclipse with the "Run" button it says "error while loading shared libraries: libcxcore.so.1: cannot open shared object file: No such file or directory". this is the same error when i am starting the program from console and the environment variable $LD_LIBRARY_PATH is not set correctly to include the directories where these shared objects are.
1. i tried to set the variable in eclipse under Run->Environment it says "<terminated>..."and does nothing


2. and i tried to set the variable under Window -> Preferences -> C/C++ -> Managed Build -> User Variables. it says "rror while loading shared libraries: libcxcore.so.1: cannot open shared object file: No such file or directory".

it seems that the runtime libraries are not found.

did anyone face the same problem?
frank


Did you try entering the LD_LIBRARY_PATH in the Environment tab on your launch configuration? This works on Windows (with the PATH variable), but I haven't tried it on Linux.


Doug.