delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/09/05/17:52:40

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Delivered-To: fixup-cygwin AT cygwin DOT com@fixme
From: "Paul G." <pgarceau AT qwest DOT net>
Organization: New Dawn Productions
To: cygwin AT cygwin DOT com
Date: Wed, 5 Sep 2001 14:52:17 -0800
MIME-Version: 1.0
Subject: Re: -mno-cygwin
Reply-to: Paul Garceau <pgarceau AT qwest DOT net>
Message-ID: <3B963C21.20250.398C83@localhost>
In-reply-to: <20010904215159.C11902@redhat.com>
References: <EKEJKOHPOIIALFJMKEIGCEJKCGAA DOT mbresnah AT visi DOT com>
X-mailer: Pegasus Mail for Win32 (v4.0, beta 40)

Hi folks,

	Given what cgf states below, depending on your needs of course, it might be less hassle 
to use Mingw tool set as it has no problems with C++ and, last I checked, was working just fine 
with libstdc++.

	So, as noted, -mno-cygwin WORKS with Cygwin gcc, but not with Cygwin g++.  For a 
WORKING version of something approximating the bash command "g++ <xxx> -o<xxx> -mno-
cygwin", it may simplify things immensely just to use Mingw "g++" instead of Cygwin "g++ -mno-
cygwin".

	Paul G.

On 4 Sep 2001 at 21:51, the Illustrious Christopher Faylor wrote:

> On Tue, Sep 04, 2001 at 08:26:58PM -0700, Mike Bresnahan wrote:
> >> >-- begin --
> >> >/usr/local/src/no-cygwin-bug: make
> >> >gcc -c -I/usr/local/src/mingw32/gcc-2.95.2/include/g++-3
> >> -mno-cygwin main.cc
> >> >gcc -I/usr/local/src/mingw32/gcc-2.95.2/include/g++-3 -mno-cygwin
> >> >main.o
> >> -L/usr/local/src/mingw32/gcc-2.95.2/lib/gcc-lib/i386-mingw32msvc/2.95
> >> >.2 -lstdc++ -lm  -o main
> >>              ^^^
> >> Do not link with this.  A 'ls -l /usr/lib/libm.a' will probably
> >> show you why.
> >
> >Thanks.  Ok so which math library do I use then?
> 
> I don't know.  I assume that you don't need any, however, that's a
> question for the mingw mailing list.  You probably should just try it
> without the -lm. It might just work.
> 
> >Also I notice that the mingw32 math.h is missing asinf() and some
> >others, but perhaps that is a question for the mingw32 list.
> >
> >> >Note that I have downloaded mingw32 and am pointing at its headers
> >> >and libraries, because cygwin is missing the ANSI C++ headers and
> >> >libraries.
> >>
> >> I don't know what this means.  Cygwin comes with a complete set of
> >> headers and libraries and it also includes fairly recent mingw
> >> headers and libraries, with the exception of libstdc++.a.
> >
> >Okay, I stand corrected.  It appears that the ANSI C++ headers are in
> >/usr/include/g++-3.  However I still need libstdc++.a, no?
> 
> Actually, for -mno-cygwin, you *will* probably need the mingw g++-3
> versions.  If you are just using -mno-cygwin for ANSI C++ headers,
> though, then there is no reason to do that.
> 
> So, to summarize:
> 
> 1) Just removing -lm may work, unless you're using the cygwin version of
>    libstdc++.a.
> 
> 2) Otherwise, you really do need the mingw header files an libstdc++.a
> if
>    you want to build with -mno-cygwin.  Just make sure that you are not
>    pulling in any cygwin libraries and you should be ok.
> 
> cgf
> 
> --
> 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/
> 
> 



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