This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: linking and iostreams
- To: Greg Miller <gmiller@classic-games.com>
- Subject: Re: linking and iostreams
- From: Mumit Khan <khan@xraylith.wisc.EDU>
- Date: Fri, 12 Mar 1999 16:33:58 -0600
- cc: cygwin@sourceware.cygnus.com
- Delivered-To: listarch-cygwin@sourceware.cygnus.com
- Delivered-To: mailing list cygwin@sourceware.cygnus.com
- In-reply-to: Your message of "Fri, 12 Mar 1999 14:08:47 CST." <36E9744E.790549C@classic-games.com>
- Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
- Sender: cygwin-owner@sourceware.cygnus.com
Greg Miller <gmiller@classic-games.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@sourceware.cygnus.com