Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <199911041723.LAA03295@pluto.xraylith.wisc.edu> To: "Kris Thielemans" cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: problem using gcc 2.95.1 In-Reply-To: Your message of "Thu, 04 Nov 1999 13:26:36 GMT." <003d01bf26c8$38052840$1d4bb392 AT petnt1 DOT rpms DOT ac DOT uk> Date: Thu, 04 Nov 1999 11:23:17 -0600 From: Mumit Khan "Kris Thielemans" writes: > Dear Mumit, > > I've downloaded your latest gcc distribution for Cygwin (I have NT 4.0 sp5, > Cygwin b20.1). Everything works fine if I don't use the -mno-cygwin flag. > However, if I do, I get a parse error in bastring.h: > > > bash-2.02$ g++ -mno-cygwin -I/home/kris/PPhead/include -c distributable.cxx > > In file included from > /usr/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.95/../../../../.. > /include/g++-3/string:6, > from /home/kris/PPhead/include/NumericInfo.h:34, > from /home/kris/PPhead/include/Tensorbase.h:25, > from /home/kris/PPhead/include/Tensor2D.h:17, > from /home/kris/PPhead/include/imagedata.h:6, > from /home/kris/PPhead/include/distributable.h:8, > from distributable.cxx:3: > /usr/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../in > clude/g++-3/std/bastring.h:65: parse error before `>' > /usr/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/2.95/../../../../../in > clude/g++-3/std/bastring.h:71: confused by earlier errors, bailing out > > I can think of one cause -- a rogue alloc.h in the mingw32 include directory that's been removed from my Mingw runtime a while back. One way to check it is the following: Use -H flag when compiling and se what alloc.h is being included. See http://www.delorie.com/archives/browse.cgi?p=cygwin/1998/12/29/14:06:14 for more info. If that's not the reason, send me the preprocessed file pelase. $ g++ -c -save-temps [options] file.cc and send me resulting file.ii. Regards, Mumit ps: you need to send email to cygwin AT sourceware DOT cygnus DOT com instead of to the old name gnu-win32 AT cygnus DOT com. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com