delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/29/10:31:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
MIME-Version: 1.0
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\)" <gsw AT agere DOT com>
To: <cygwin AT cygwin DOT com>
Cc: "Matt Olson" <matt DOT j DOT olson AT gmail DOT com>
X-OriginalArrivalTime: 29 Mar 2005 15:31:06.0635 (UTC) FILETIME=[532EBDB0:01C53474]
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/


- Raw text -


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