This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: c++ and -mno-cygwin
- To: Serguei DACHIAN <Serguei dot Dachian at univ-lemans dot fr>
- Subject: Re: c++ and -mno-cygwin
- From: Mark Fitzgerald <mfitzger at elora dot math dot uwaterloo dot ca>
- Date: Wed, 23 Dec 1998 12:24:51 -0500 (EST)
- 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@cygnus.com" with one line of text: "help".