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: <199907101702.MAA11009@mercury.xraylith.wisc.edu> To: Craig Hobbs cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: Pesky -mno-cygwin problem In-Reply-To: Your message of "Sat, 10 Jul 1999 09:14:18 PDT." <156F63BC1F91D21189D000104B8D6AA049572B AT EVEREST> Date: Sat, 10 Jul 1999 12:02:38 -0500 From: Mumit Khan Craig Hobbs writes: > While we're talking about -mno-cygwin... This is something I noticed a > while ago -- I'm using b20.1 and egcs-2.91.66 -- notice that the following > code doesn't compile with -mno-cygwin: > > // test.cpp > #include > > int main() > { > std::string s; > return 0; > } > > gcc -c -g -mno-cygwin test.cpp > In file included from > C:/bin/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.6 > 6/../../../../../include/g++/string:6, > from test.cpp:1: > C:/bin/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.6 > 6/../../../../../include/g++/std/bastring.h:65: parse error before `>' > C:/bin/cygnus/CYGWIN~1/H-I586~1/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.6 > 6/../../../../../include/g++/std/bastring.h:71: confused by earlier errors, > bailing out > make: *** [test.o] Error 1 > make: Target `all' not remade because of errors. This is because mingw includes in Cygwin b20 has a file that I've removed since -- alloc.h, which causes all sorts of problems (and MS has removed it sometime since VC++ 2.0 or so). Simply take the definitions from alloc.h, put those in malloc.h and delete alloc.h. This is fixed for the next version of Cygwin. Also, mno-cygwin folks please read my howto at: http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ Regards, Mumit -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com