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 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: Cannot link ___assert, __impure_ptr with -mno-cygwin Date: Tue, 29 Mar 2005 10:31:06 -0500 Message-ID: <94BF3137C62D3E4CAED7E97F876585F076397E@pauex2ku08.agere.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Williams, Gerald S \(Jerry\)" To: Cc: "Matt Olson" X-OriginalArrivalTime: 29 Mar 2005 15:31:06.0635 (UTC) FILETIME=[532EBDB0:01C53474] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j2TFVLk7005335 Matt Olson wrote: > I've narrowed my problems down to a relatively small test case: [...] > Makefile: [...] > LINKFLAGS = -g -L/lib/mingw -mwindows -mno-cygwin > LIBS = -lmingw32 > > foo: foo.o > gcc $(LINKFLAGS) -o foo foo.o $(LIBS) [...] > Compiler output: > $ make > gcc -g -L. -L/home/matt/lib -L/lib/mingw -o foo foo.o -lmingw32 > -mwindows -mno-cygwin I don't quite know how you got that makefile to produce precisely that output. :-) Regardless, try starting again after removing foo.o. My guess is that you have a version of foo.o compiled without -mno-cygwin. If you rebuild everything, it should compile cleanly, although I expect it will still not act the way you want it to. If you run it from the console you won't see any output. Try removing the -mwindows option. I don't think you need the -L/lib/mingw or -lmingw32 options either, although they shouldn't hurt. -Jerry -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/