www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/23/16:58:18

From: mfitzger AT elora DOT math DOT uwaterloo DOT ca (Mark Fitzgerald)
Subject: Re: c++ and -mno-cygwin
23 Dec 1998 16:58:18 -0800 :
Message-ID: <Pine.SOL.3.96.981223122332.14304A-100000.cygnus.gnu-win32@elora.math.uwaterloo.ca>
References: <1 DOT 5 DOT 4 DOT 32 DOT 19981223023745 DOT 0067f7f0 AT lola DOT univ-lemans DOT fr>
Mime-Version: 1.0
To: Serguei DACHIAN <Serguei DOT Dachian AT univ-lemans DOT fr>
Cc: gnu-win32 AT cygnus DOT com

> Hi everybody.
> 
> Trying to compiling the simplest c++ program "Hello world"
>  > #include <iostream.h>
>  >
>  > int main ()
>  > {
>  >    cout << "Hello world." << endl;
>  >    return 0;
>  > }
> with the flag "-mno-cygwin" (just lile "g++ -mno-cygwin hello.cpp") fails
> with lots of undefined references in "libstdc++.a".  Apparently it is
> impossible to use this flag with g++/c++, but only with gcc.  Is it a bug or
> an intention??? Is there any workarround [ except rewriting the program in C
> :-))) ].
> 
> Thanks in advance for any help.
> 
> Serguei.

I use -mno-cygwin successfully with g++.  I believe just adding '-lstdc++'
will at least partially solve your problem.  This is untested advice,
however, as I am not at my home PC (welcome to xmas).

Mark Fitz

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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