delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | "Hans Horn" <hannes AT 2horns DOT com> |
Subject: | Re: compile error in fstream |
Date: | Mon, 7 Mar 2005 23:28:02 -0800 |
Lines: | 34 |
Message-ID: | <d0jk60$js1$1@sea.gmane.org> |
References: | <d0hvu2$a1a$1 AT sea DOT gmane DOT org> |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | adsl-63-201-89-26.dsl.snfc21.pacbell.net |
X-Newsreader: | Microsoft Outlook Express 6.00.2900.2527 |
X-RFC2646: | Format=Flowed; Response |
X-Gmane-MailScanner: | Found to be clean |
X-Gmane-MailScanner: | Found to be clean |
X-Gmane-MailScanner-SpamScore: | sssss |
X-MailScanner-From: | goc-cygwin AT m DOT gmane DOT org |
X-MailScanner-To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Well, after poking around, I found that explicitly #including <fstream> fixed the problem. No idea why it worked without that #include under -mno-cygwin or why it worked with older gcc! Anycase - problem solved. 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |