Re: [Cppunit-devel] How to use cppunit on AIX5L?
Brought to you by:
blep
From: Henning W. <hen...@di...> - 2005-04-12 18:46:45
|
Am Dienstag 12. April 2005 08:38 schrieb Huiting He: > Hi, > > I'm writing to you for help because I've met some problems while using > cppuint. > > My OS is AIX5L; I download cppunit-1.10.2 from > http://sourceforge.net/projects/cppunit > [...] > I have used the test codes written on CppUnit Cookbook. What was worse, > the codes even can't be successfully compiled. > ld: 0711-317 ERROR: Undefined symbol: > CppUnit::TestCase::run(CppUnit::TestResult*) >[...] > I have already included all necessary head files. How to deal with this > error? Hello Huiting He, the error message is from ld, that is the linker program. Have you added the appropriate linker flags to the compiler/linker invocation? On my linux system i use "-lcppunit -ldl". And did the linker find the cppunit lib? You could either install cppunit system-wide, or you must add the location of the lib to the compiler call too. You wrote that you could compile the cppunit test examples. Please refer to them for the right compiler flags. The coredump problem after the execution of the tests could be perhaps a library problem too. Best regards, Henning |