This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: problem using gcc 2.95.1
- To: "Kris Thielemans" <k dot thielemans at ic dot ac dot uk>
- Subject: Re: problem using gcc 2.95.1
- From: Mumit Khan <khan at nanotech dot wisc dot edu>
- Date: Thu, 04 Nov 1999 11:23:17 -0600
- cc: cygwin at sourceware dot cygnus dot com
"Kris Thielemans" <k.thielemans@ic.ac.uk> 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@sourceware.cygnus.com instead of to
the old name gnu-win32@cygnus.com.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com