Anonymous - 2003-08-06

Hey guys,

I'm beginner into the usage of the CppUnit. My big problem is relative to the link of this library. The only way which I have obtained an executable file is with -static option activated in the linker.
How can I reduce the size of this file?

Thank you very much for your suggestions or solutions regards this problem.

I annexed more information if they can help you into this problem:

Output on video from make:
cd /home/.../Testing_examples/FirstCppUnitTest/
make
g++ -o FirstCppUnitTest_TDCppUnit FirstCppUnitTest_TDCppUnit.o ComplexNumberTest_CppUnit.o  -L/usr/local/lib  -lcppunit

Compilation finished at Fri Aug  1 23:22:50

But when I try to run the program I have obtain this sibling message:

[planza@localhost FirstCppUnitTest]$ ./FirstCppUnitTest_TDCppUnit
./FirstCppUnitTest_TDCppUnit: error while loading shared libraries: libcppunit-1.8.so.0: cannot open shared object file: No such file or directory

Obviously the file are existing in  usr/local/include and  usr/local/lib

The unique way to around this problem was to compile with -static option but I have obtained a big executable file.

Thank you very much for your suggestions or solutions regards this problem.