Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

gcc link error

Help
2005-01-21
2013-04-22
  • »ÆÊ滳
    »ÆÊ滳
    2005-01-21

    my project use cppunit 1.10.2 under Linux 2.4.x,

    it can't pass the linkage saying dozen's of unresolved reference to cppunit's function,for example:

    CXmlTestSuite.o(.gnu.linkonce.r._ZTVN7CppUnit10TestCallerIN4Test13CXmlTestSuiteEEE+0x30):/home/hsh/xproject/DEVELOPER/Huangshuhuai/UnitTester/CXmlTestSuite.cpp:27: undefined reference to `CppUnit::Test::resolveTestPath(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&) const'

    But I have specified -lcppunit in my Makefile,i think there must be some differens between the cppunit library's setting and my project's setting,but i don't know how to figure it out....

    Any one can help me to solve this problem?

    Thanks in advance.