I wrote a program that uses:
Code:
libCppUnit.so, libCppUnitd.so, libPocoFoundation.so libPocoFoundationd.so libPocoNet.so libPocoNetd.so libPocoUtil.so libPocoUtild.so libPocoXML.so libPocoXMLd.so
I add this libraries with related include files and compiled test.cpp:
Code:
Building file: ../src/test.cpp
Invoking: GCC C++ Compiler
g++ -I"/home/mijax/Eclipse/workspace/Anal1/common/CppUnit/include" -I"/home/mijax/Eclipse/workspace/Anal1/common/Foundation/include" -I"/home/mijax/Eclipse/workspace/Anal1/common/Net/include" -I"/home/mijax/Eclipse/workspace/Anal1/common/Util/include" -I"/home/mijax/Eclipse/workspace/Anal1/common/XML/include" -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o"src/test.o" "../src/test.cpp"
Finished building: ../src/test.cpp
Building target: Anal1
Invoking: GCC C++ Linker
g++ -L"/home/mijax/Eclipse/workspace/Anal1/lib" -o"Anal1" ./src/test.o -lCppUnit -lCppUnitd -lPocoFoundationd -lPocoNetd -lPocoUtild -lPocoXMLd -lPocoFoundation -lPocoNet -lPocoUtil -lPocoXML
Finished building target: Anal1
As you see, When I build it, all thing is OK. BUT when i run Anal1, get me this error:
Code:
/home/mijax/Eclipse/workspace/Anal1/Release/Anal1: error while loading shared libraries: libCppUnit.so.1: cannot open shared object file: No such file or directory
How add shared objects file?
Code:
libCppUnit.so.1, libCppUnitd.so.1, libPocoFoundation.so.9 libPocoFoundationd.so.9 libPocoNet.so.9 libPocoNetd.so.9 libPocoUtil.so.9 libPocoUtild.so.9 libPocoXML.so.9 libPocoXMLd.so.9