Menu

No sample code I've downloaded links

Help
2006-05-09
2013-04-22
  • Archimboldo

    Archimboldo - 2006-05-09

    I've downloaded several sample (and simple) pieces of code to demonstrate cppunit and none work.  I get error messages like the following:

    In function `SimpleTest::runTest()':
    undefined reference to `CppUnit::Message::Message(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'

    Undefined references to SourceLine::SourceLine() and Asserter::failIf(bool, CppUnit::Message const&, CppUnit::Sourceline const&) are other favorites.

    It must be some oddity in my environment, but I can't figure out what.  I'm using version 1.10.

    If anyone can please help, I'd appreciate it.

     
    • Baptiste Lepilleur

      Best guess would be that you don't link with cppunit library?!?

      Baptiste.

       

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.