This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: g++ linking probs


> /home/Administrator/work/cxx/tests/Employee.cpp:72: undefined reference to
> `CppUnit::TestCase::TestCase[not-in-charge](std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >)'
>
>
/cygdrive/c/TEMP/ccL6jx4L.o(.text$_ZN7CppUnit16TestSuiteBuilderI12EmployeeTe
>
stE7addTestEPNS_4TestE+0x1c):/home/Administrator/work/cxx/tests/Employee.cpp
> :70: undefined reference to `CppUnit::TestSuite::addTest(CppUnit::Test*)'
>
> This is thrown for every method call.


Did you build libcppunit as a static lib or a shared (.dll) lib? It the
latter then try linking eith the static lib (adding libcppunit.a on the
end).


Regards,

Elfyn McBratney
elfyn at exposure dot org dot uk
www.exposure.org.uk



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]