delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/03/12/17:34:50

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
Message-Id: <199903122233.QAA29918@modi.xraylith.wisc.edu>
X-Authentication-Warning: modi.xraylith.wisc.edu: localhost.xraylith.wisc.edu [127.0.0.1] didn't use HELO protocol
To: Greg Miller <gmiller AT classic-games DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: linking and iostreams
In-reply-to: Your message of "Fri, 12 Mar 1999 14:08:47 CST."
<36E9744E DOT 790549C AT classic-games DOT com>
Date: Fri, 12 Mar 1999 16:33:58 -0600
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>

Greg Miller <gmiller AT classic-games DOT com> writes:
> 
> This program:
> 
> #include <iostream>
> 
> int main() {
>   cout << "test" << endl;
> 
>   return 0;
> }
> 
> compiles, links, and does what I expect when compiled with B20.1 and
> egcs-1.1.1 using this command:
> 
> g++ test.c
> 
> but generates numerous undefined references during linking when compiled
> with:
> 
> g++ -mno-cygwin test.c

Please see my howto[1] on -mno-cygwin option. This issue has been discussed
in detail in this group, so the search engine is also a good option.

[1] http://www.xraylith.wisc.edu/~khan/software/gnu-win32/
    http://www.delorie.com/howto/

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