delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/02/01/12:31:44

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <200002011713.LAA06417@hp2.xraylith.wisc.edu>
To: kris DOT thielemans AT csc DOT mrc DOT ac DOT uk
cc: "Gnuwin" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: namespace std in gcc 2.95.2
In-reply-to: Your message of "Tue, 01 Feb 2000 16:34:19 GMT."
<004201bf6cd2$2fde8f30$1d4bb392 AT petnt1 DOT rpms DOT ac DOT uk>
Date: Tue, 01 Feb 2000 11:13:43 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

"Kris Thielemans" <kris DOT thielemans AT csc DOT mrc DOT ac DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019