Menu

Problems building 1.12.0

Help
Strunker
2006-07-10
2013-04-22
  • Strunker

    Strunker - 2006-07-10

    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

     
    • Felix Deutsch

      Felix Deutsch - 2006-07-23

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.