namespace std in gcc 2.95.2

Mumit Khan khan@NanoTech.Wisc.EDU
Tue Feb 1 09:14:00 GMT 2000

"Kris Thielemans" <> writes:
> I'm a surprised to discover that the STL library in Mumit's gcc 2.95.2 is
> not put into the std namespace.
> You can check this by compiling the next programme with
> g++ test.cxx -fhonor-std
> #include <vector>
> int main()
> {
>   std::vector<int> a(1);
>   return 0;
> }
> (Of course, it compiles fine without the explicit honor-std switch).
> It can also be checked by looking at stl_config.h (see end of mail).
> One important consequence is that std::iterator (or just iterator) is not
> defined. (I checked stl_iterator.h, and it is only defined when
> __STL_USE_NAMESPACES is #defined. )
> I think __STL_USE_NAMESPACES is #defined in other gcc 2.95.2 distributions.
> Any particular reason why it isn't in the cygwin version ?

It's not enabled for other gcc-2.95.2 either, sorry. Until the standard
C++ library is part of gcc, it really won't work as you would expect.

If you're using -fhonor-std, you'll need to (1) rebuild libgcc.a with
this option, and (2) fix stl_config.h to do the right thing.


Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list