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


Hi
I have libcppunit.la and libcppunit.a
That'll be static,right??

How do I link it then?
-Manu

There are things known and things Unknown.
In between are the doors - Jim Morrisson

> ----------
> From: 	Elfyn McBratney[SMTP:elfyn-cygwin at exposure dot org dot uk]
> Sent: 	Thursday, February 20, 2003 2:32 PM
> To: 	cygwin; Manu Anand
> Subject: 	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$_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
> elfyn at exposure dot org dot uk
> www.exposure.org.uk
> 
> 
> 
> 
DISCLAIMER: Information contained and transmitted by this E-MAIL is
proprietary to Mascot Systems Limited and is intended for use only by the
individual or entity to which it is addressed, and may contain information
that is privileged, confidential or exempt from disclosure under applicable
law. If this is a forwarded message, the content of this E-MAIL may not have
been sent with the authority of the Company. If you are not the intended
recipient, an agent of the intended recipient or a person responsible for
delivering the information to the named recipient, you are notified that any
use, distribution, transmission, printing, copying or dissemination of this
information in any way or in any manner is strictly prohibited. If you have
received this communication in error, please delete this mail & notify us
immediately at Mailadmin at mascotsystems dot com Before opening attachments,
please scan for viruses. 



--
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]