> Hi > I have libcppunit.la and libcppunit.a > That'll be static,right?? > > How do I link it then? > -Manu >
Like so g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib libcppunit.a prog.cxx But it's static so it won't make any difference. Sorry I'm all out! > > > /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$_ZN7CppUnit16TestSuiteBuilderI12Employee > > Te > > > > > stE7addTestEPNS_4TestE+0x1c):/home/Administrator/work/cxx/tests/Employee.c > > pp > > > :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 [EMAIL PROTECTED] 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/