Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <026001c2d8bd$0231c570$526286d9@webdev> From: "Elfyn McBratney" To: "cygwin" , "Manu Anand" References: <5575473D4532D411BE4C009027E8C8380AB81505 AT masblrexc02 DOT mascotsystems DOT com> Subject: Re: g++ linking probs Date: Thu, 20 Feb 2003 08:49:40 -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 > 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 -- 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/