This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: namespace std in gcc 2.95.2
- To: kris dot thielemans at csc dot mrc dot ac dot uk
- Subject: Re: namespace std in gcc 2.95.2
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Tue, 01 Feb 2000 11:13:43 -0600
- cc: "Gnuwin" <cygwin at sourceware dot cygnus dot com>
"Kris Thielemans" <kris.thielemans@csc.mrc.ac.uk> 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.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com