delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/28/00:41:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: mercury.xraylith.wisc.edu: khan owned process doing -bs
Date: Sun, 27 Jun 1999 23:40:21 -0500 (CDT)
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>
To: Jeff Boleng <boleng AT rmi DOT net>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: undefined references when compiling with -mno-cygwin
In-Reply-To: <000401bebf28$e429bc10$2105e3cc@sharedearth.com>
Message-ID: <Pine.LNX.3.96.990627233438.24499A-100000@mercury.xraylith.wisc.edu>
MIME-Version: 1.0

On Fri, 25 Jun 1999, Jeff Boleng wrote:

> undefined references when compiling with -mno-cygwinI am compiling a
> medium/large sized c++ program using the -mno-cygwin linker option.  During
> link I get a lot of undefined symbol references in libstdc++.a from
> iostream.o, streambuf.o, fileops.o, stdiostream.o, floatconv.o, and
> iovscanf.o.  The references are to __errno, _ctype_, and _impure_ptr.  I'm
> using the stl pretty heavily, but I'm not using any of cygwin's Unix API.
> Seems like it should work.
> 
> Similar errors in the math library (libm.a).
> 
> I'm wondering if the lib*.a files (especially libstdc++ and the stl headers)
> included with the cygwin release (version 2.02.1(2)-release
> (i586-pc-cygwin32)) I'm using do make use of some portions of the API that
> are Unix specific and I therefore won't be able to compile without linking
> to cygwin.dll.
> 
> I didn't find anything in the FAQ or archives, so if anyone can help please
> let me know.

You're kidding, right? There're tons of posts regarding mno-cygwin in the
archives, and some of these deal with precisely this issue. Please at
the very least see my mno-cygwin howto at:
  http://www.xraylith.wisc.edu/~khan/software/gnu-win32/

If you need cygwin features, why in the world are you using -mno-cygwin?

As for needing cygwin features as well, let me put this on record yet again
-- You CANNOT mix Cygwin and Mingw runtimes. Period. 

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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