This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: compile error in fstream
- From: "Hans Horn" <hannes at 2horns dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 7 Mar 2005 11:52:03 -0800
- Subject: Re: compile error in fstream
- References: <d0hvu2$a1a$1@sea.gmane.org>
I should have mentioned that the code compiles using if I add
the -mno-cygwin flag to the compile options.
H.
Hans Horn wrote:
> Group,
>
> I'm trying to compile a source tree under cygwin gcc 3.4.1.
> This is where gcc barfs:
>
> In file included from
> /usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../include/c++/3.4.1/fstream:857,
> from ...
> /usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../include/c++/3.4.1/bits/fstream.tcc:
> In member function `virtual typename std::basic_filebuf<_CharT,
> _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()':
> /usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../include/c++/3.4.1/bits/fstream.tcc:277:
> error: expected unqualified-id before '(' token
> /usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../include/c++/3.4.1/bits/fstream.tcc:
> In member function `virtual std::streamsize std::basic_filebuf<_CharT,
> _Traits>::xsputn(const _CharT*, std::streamsize)':
> /usr/lib/gcc/i686-pc-cygwin/3.4.1/../../../../include/c++/3.4.1/bits/fstream.tcc:518:
> error: expected unqualified-id before '(' token
>
> the last time I did that successfully was in April 2004; dunno what
> gcc vintage I had back then.
>
> Anybody got any clues?
>
> H.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/