I compiled cppunit package under linux. On doing a 'make' i am supposed to have the *.so files created in the /lib folder
But to my surprise its empty...
Am I missing something... I guess i would need these files to be able to create executables from CPPUNIT. i.e i would say the following :
%> g++ -L/home/<name>/cppunit/lib -o test *.o -lCppUnit
Any ideas/help ...
eagerly waiting...
OK I figured out myself ...
On compiling the cppunit package, the libraries were created at: /usr/local/bin/
ie: /usr/local/bin/libcppunit.la /usr/local/bin/libcppunit.so /usr/local/bin/libcppunit.2.0.so
But now I have another question?
I have a bunch of .cpp files and I ran the following:
(1) g++ -I/<path to *.h files> test1.cpp g++ -I/<path to *.h files> test2.cpp
On doing the above, I have bunch of object-files created (*.o)
(2) Now I am trying to create an executable:
g++ -L/<path to *.so files> -o tester *.o -lcppunit
On doing the above I get bunch of errors saying that 'dclose' ... not in libcppunit file
QUESTIONS: `````````` (1) Any ideas/suggestions on getting rid of this error.
(2) Can anyone tell me if I am using the correct switches while creating the executable i.e Is -lcppunit correct??
(3) I also came cross another switch "-lcppunitrunner" .. Is this valid too?
NOTE: The above switches were obtained from the "Crash course in CppUnit" doc. on internet
Waiting ...
Log in to post a comment.
I compiled cppunit package under linux.
On doing a 'make' i am supposed to have the *.so files created in the /lib folder
But to my surprise its empty...
Am I missing something... I guess i would need these files to be able to create executables from CPPUNIT. i.e i would say the following :
%> g++ -L/home/<name>/cppunit/lib -o test *.o
-lCppUnit
Any ideas/help ...
eagerly waiting...
OK I figured out myself ...
On compiling the cppunit package, the libraries were created at: /usr/local/bin/
ie: /usr/local/bin/libcppunit.la
/usr/local/bin/libcppunit.so
/usr/local/bin/libcppunit.2.0.so
But now I have another question?
I have a bunch of .cpp files and I ran the following:
(1) g++ -I/<path to *.h files> test1.cpp
g++ -I/<path to *.h files> test2.cpp
On doing the above, I have bunch of object-files created (*.o)
(2) Now I am trying to create an executable:
g++ -L/<path to *.so files> -o tester *.o
-lcppunit
On doing the above I get bunch of errors saying that 'dclose' ... not in libcppunit file
QUESTIONS:
``````````
(1) Any ideas/suggestions on getting rid of this error.
(2) Can anyone tell me if I am using the correct switches while creating the executable
i.e Is -lcppunit correct??
(3) I also came cross another switch
"-lcppunitrunner" .. Is this valid too?
NOTE: The above switches were obtained from the "Crash course in CppUnit" doc. on internet
Waiting ...