Try cleaning your machine of any header files from a previous cppunit install (probably using a cppunit-1.10.2 package of your Linux distribution) residing in /usr/include, i.e. remove the cppunit-devel RPM.
The same goes for the libraries (cppunit RPM), otherwise you'll run into linker errors later.
You can of course keep the distribution-supplied cppunit packages, as long as you trim the Include and Library paths in the Makefile.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I'm trying to compile the qttestrunner of cppunit on my linux machine, but I get the following compile error:
g++ -c -pipe -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -Wall -W -g -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt3/mkspecs/default -I. -I. -I../../include -I/usr/include -I/usr/lib/qt3/include -I.moc/ -I.moc/ -o .obj_debug/TestRunnerModel.o TestRunnerModel.cpp
../../include/cppunit/TestResult.h:118: error: invalid use of undefined type ‘struct std::string’
/usr/include/c++/4.0.2/bits/stringfwd.h:56: error: declaration of ‘struct std::string’
make: *** [.obj_debug/TestRunnerModel.o] Fehler 1
Does anybody have an idea what going wrong?
Bye
Karsten
Try cleaning your machine of any header files from a previous cppunit install (probably using a cppunit-1.10.2 package of your Linux distribution) residing in /usr/include, i.e. remove the cppunit-devel RPM.
The same goes for the libraries (cppunit RPM), otherwise you'll run into linker errors later.
You can of course keep the distribution-supplied cppunit packages, as long as you trim the Include and Library paths in the Makefile.