Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <029101c2d8be$d6b49560$526286d9@webdev>
From: "Elfyn McBratney" <elfyn-cygwin@exposure.org.uk>
To: "cygwin" <cygwin@cygwin.com>, "Manu Anand" <ManuA@mascotsystems.com>
References: <5575473D4532D411BE4C009027E8C8380AB81506@masblrexc02.mascotsystems.com>
Subject: Re: g++ linking probs
Date: Thu, 20 Feb 2003 09:02:46 -0000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

> /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@exposure.org.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/

