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 Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <009a01c19993$9f595a80$010b10ac@bluesguitar.org> From: "Matthew Smith" To: "Cygwin" References: <1ZTTO4163XWA9NJ85GDJDA41WUNM83 DOT 3c3d1b01 AT incognito> Subject: Re: Having a bad time with g++ under cygwin Date: Wed, 9 Jan 2002 22:59:45 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Try linking with g++ instead of ld. cheers, -Matt > I'm getting extremely frustrated trying to get my code to build with g++ 2.95.3-5 (ld 2.11.92) under > the latest cygwin (1.3.6 I think) on a Win2K platform. Attached is the (edited) output of my build. > Basically I build a bunch of object files from C++ source, build a library from them, then build a > C++ test program and try to link it with that library. During linking I get tons of "multiple definition" > errors with symbols that are created by my code and then even more "undefined references" to > all kinds of symbols that should be built into Windows. > > Can someone set me straight here? I just know I'm doing something incredibly stupid. > > thanx & later, > > Ben Scherrey -- 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/