pramod - 2005-03-29

Hi,

I am trying to compile a small test case i wrote using cppunit-1.10.2 on IBM AIX-5.2 (64 bit). I have the binaries in PATH, libraries in LIBPATH and the include files are under /usr/include/cppunit.

When i try to compile the program, i am getting the following errors. Could anybody please help me out ? I am using Visual Age C++ 6.0 (xlC_r).

----------------------------------------
[181-gcuser@INHYLB1-IBM4 ~/gc4_autobuild/iconv/orig/libiconv-1.9.1/UnitTests]$make -f Makefile.aix
xlC_r -DHAVE_CONFIG_H -c iconvTest.cpp
1540-5215 (W) No licenses available. Contact your program supplier to add additional users. Compilation will proceed shortly.
"/usr/include/cppunit/TestAssert.h", line 36.8: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/TestAssert.h", line 57.6: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/TestCaller.h", line 104.7: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/extensions/TestSuiteFactory.h", line 15.9: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/extensions/AutoRegisterSuite.h", line 28.7: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/extensions/ExceptionTestCaseDecorator.h", line 44.7: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/extensions/TestFixtureFactory.h", line 29.7: 1540-0121 (S) A template cannot have "C" linkage.
"/usr/include/cppunit/extensions/TestSuiteBuilderContext.h", line 100.7: 1540-0121 (S) A template cannot have "C" linkage.
"iconvTest.h", line 32.49: 1540-0130 (S) "CppUnit::TestCaller" is not declared.
make: *** [iconvTest.o] Error 1

Regards,
Pramod.