CppUnit don't compile on a FreeBSD system with gcc 3.0.1. Here's some output:
../../include/cppunit/Exception.h:33: uninitialized const
`CppUnit::UNKNOWNLINENUMBER'
../../include/cppunit/Exception.h:35: parse error before `private'
../../include/cppunit/Exception.h:42: parse error before `}' token
In file included from TestAssert.cpp:3:
../../include/cppunit/TestAssert.h:30: incomplete type `CppUnit::Exception'
does not have member `UNKNOWNLINENUMBER'
../../include/cppunit/TestAssert.h:31: incomplete type `CppUnit::Exception'
does not have member `UNKNOWNFILENAME'
--($:)- gcc -v
Reading specs from /store/lib/gcc-lib/i386-unknown-freebsd4.2/3.0.1/specs
Configured with: ./configure --with-local-prefix=/store --prefix=/store --disable-shared
Thread model: posix
gcc version 3.0.1
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all!
CppUnit don't compile on a FreeBSD system with gcc 3.0.1. Here's some output:
../../include/cppunit/Exception.h:33: uninitialized const
`CppUnit::UNKNOWNLINENUMBER'
../../include/cppunit/Exception.h:35: parse error before `private'
../../include/cppunit/Exception.h:42: parse error before `}' token
In file included from TestAssert.cpp:3:
../../include/cppunit/TestAssert.h:30: incomplete type `CppUnit::Exception'
does not have member `UNKNOWNLINENUMBER'
../../include/cppunit/TestAssert.h:31: incomplete type `CppUnit::Exception'
does not have member `UNKNOWNFILENAME'
--($:)- gcc -v
Reading specs from /store/lib/gcc-lib/i386-unknown-freebsd4.2/3.0.1/specs
Configured with: ./configure --with-local-prefix=/store --prefix=/store --disable-shared
Thread model: posix
gcc version 3.0.1
*doh*
That one goes in the class of 'menaingfull posts of the year'. I was in a hurry, sorry.
The error was caused by a missing std:: before exception in
Exception.h:16.
Also, the virtual destructor needs a throw() decl, it seems. (Gcc3.0 seems to be 'stricter' than the 2.9x series. )
Heuu, You are aware that CppUnit 1.6.0 has been released and that a lot of those silly little things have been fixed, isn't it ???
Baptiste.