This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

iostream and stdc++ libraries with Mingw32



Hello all,

I have managed to build a version of the iostream library with Mingw32 (one
of the tests that I did on the library didn't seem to work, the reread test
to be specific, but it seems to be mostly working otherwise). Now I was trying
to build a version of libstdc++. Almost everything compiles, but I get an odd
error compiling cstrio.o:

/src/libstdc++/std/bastring.cc: In function `class istream & getline(class istre
am &, class basic_string<char,string_char_traits<char> > &, char)':
/src/libstdc++/std/bastring.cc:475: `class basic_string<char,string_char_traits<
char> >' has no member named `npos'

I seem to remember this from the last time I tried to do this (back in
beta 16), but still, I wonder if anyone has any insights.

What's really odd about this is that this static const member is accessed
in many other places in the same file by member functions of basic_string.
The reference in question however, is a reference through the second
argument to the function (see the prototype given in the error message).
Does anyone have any idea what's going on here?

Colin.

PS. Another funny thing, when I moved the declaration of npos to the
    beginning of the class declaration all the other references to
    npos went haywire (not declared in this scope). Could this whole
    thing be related to the structure declaration inside this
    class declaration (I remember some people discussing problems
    with that)? If that was so though, I don't see how the guys at
    Cygnus could have built libstdc++ with the native toolchain.

-- Colin Peters - colin@bird.fu.is.saga-u.ac.jp
-- Saga University Dept. of Information Science
-- http://www.fu.is.saga-u.ac.jp/~colin/index.html
-- http://www.geocities.com/Tokyo/Towers/6162/

-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]