Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <006a01c1cef3$b00c5ea0$2801a8c0@dcuthbert2k> From: "Dylan Cuthbert" To: "Danny Smith" , "Cygwin AT Cygwin. Com" References: <20020318230819 DOT 94289 DOT qmail AT web14507 DOT mail DOT yahoo DOT com> Subject: Re: RE: input stream crash with gcc 3.1 Date: Tue, 19 Mar 2002 12:10:56 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 I tried this #define (in the newlib bits directory - cygwin uses newlib right?), reconfigured and recompiled gcc 3.1, but the same problem occurs - segmentation fault on the simplest bit of code that uses cin or ifstream or stringstream. ( cout etc. works fine by the way). I'll repeat the code snippet for clarification: main() { std::string frog; std::cin >> frog; assert( 0 ); } (it doesn't get to the assert and segment faults) Any other ideas? :-/ --------------------------------- Q-Games, Dylan Cuthbert. http://www.q-games.com/personal/utils ----- Original Message ----- From: "Danny Smith" To: Sent: Tuesday, March 19, 2002 8:08 AM Subject: Fwd: RE: input stream crash with gcc 3.1 > > From: Danny Smith > > Subject: RE: input stream crash with gcc 3.1 > > To: dylan AT nospamq-games DOT com > > CC: cygwin AT cygwin DOT com > > > > > I have recently compiled the latest 3.1 branch (grabbed directly via > > cvs) > > > for cygwin (1.3.9) and am having problems when using anything related > > at > > > all > > > to input streams. > > > > See this: > > http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00841.html > > then try rebuilding libstdc++ with > > > > #define _GLIBCPP_AVOID_FSEEK > > added to /libstdc++-v3/config/os/newlib/bits/os_defines.h > > > > Danny > > > > http://movies.yahoo.com.au - Yahoo! Movies > > - Vote for your nominees in our online Oscars pool. > > > > http://movies.yahoo.com.au - Yahoo! Movies > - Vote for your nominees in our online Oscars pool. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/