This is the mail archive of the
mailing list for the Cygwin project.
Re: Bug in fstream code and gcc-2 package?
Am Sonntag, 4. Januar 2004 um 02:55 schriebst du:
>>$ g++ -mno-cygwin fstream.cpp
> In file included from
The default location for Cygwin & MinGW files distributed by the
Cygwin project is /usr but not /usr/local, I suggest that you try to
setup a new Cygwin tree (after backing up your old tree). Somehow
this looks wrong to me. Possibly some old headers around there under
$ ls -l /usr/include/c++/3.3.1/bits/locale_facets.h
-rwxrwxrwx 1 #gerrit Benutzer 58297 Oct 25 05:53 /usr/include/c++/3.3.1/bits/locale_facets.h*
> from /usr/local/include/c++/3.3.1/ios:51,
> from /usr/local/include/c++/3.3.1/istream:44,
> from /usr/local/include/c++/3.3.1/fstream:45,
> from fstream.cpp:1:
> /usr/local/include/c++/3.3.1/i686-pc-cygwin/bits/ctype_base.h:46: error:
> was not declared in this scope
> (similar errors follow; messages elided for brevity.)
>>Can you run it with gdb and try to figure out what fails for you?
> I've never used gdb, but here goes... install... try it...
> For some reason I couldn't get a meaningful stack trace, but by stepping it
> was easy to isolate the problem. It is in the execution of the call:
> is.rdbuf() looks like it is returning the correct pointer, but in_avail()
> is dying. If I replace the call with a constant, say 16000, the program
> Does that help?
Hmmm, not much.
> By the way, the above results hold regardless of whether the program is run
> from the Win XP command line or the bash command line.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html