delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/20/03:54:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <5575473D4532D411BE4C009027E8C8380AB81506@masblrexc02.mascotsystems.com>
From: Manu Anand <ManuA AT mascotsystems DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: g++ linking probs
Date: Thu, 20 Feb 2003 14:22:47 +0530
MIME-Version: 1.0

Sure
The general format is like this 

/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.

-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:19 PM
> To: 	cygwin; Manu Anand
> Subject: 	Re: g++ linking probs
> 
> > Guys
> > I am linking a simple C++ program with an external library using
> > g++ -W -Wall -ansi -pedantic -I/usr/local/include -L /usr/local/lib
> > -lcppunit prog.cxx
> > 
> > The linker is giving me a lot of undefined references.
> > However when I connect using telnet to RH Linux box the program runs OK.
> > I looked up the last post about undefined references but I think I am
> > linking
> > alright.
> > 
> > Whattya say??
> 
> How about a snippet of the errors from ld?
> 
> 
> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019