Re: g++, namespace std and STL
On Sun, Jan 14, 2001 at 12:33:24PM -0500, Daniel Jacobowitz wrote:
| On Mon, Jan 15, 2001 at 01:04:28AM +1100, Chris Leishman wrote:
| > Hopefully someone can set me straight on this one...
| >
| >
| > - The STL, as distributed with g++, does NOT use namespaces as it should. It
| > appears to be an older (or modified) version of the STL from that on the
| > SGI website. Why is this different or old?
| >
| > In "stl_config.h", __STL_NO_NAMESPACES is defined when building with
| > __GNUC__ 2.95.2 - which prevents the STL from putting things in the std
| > namespace (where they supposively belong).
|
| You can't use the SGI STL with GCC, I think. It just won't work.
| Similarly, GCC 2.95.2 has insufficient namespace support for the SGI
| STL.
|
I'm not sure this is accurate. I used STL with g++ 2.95.1 (I think
the last digit was 1, might have been 2) on a Solaris 8 system. I
used the SGI documentation, and found that classes the documentation
said were extensions to the standard to work just fine. Not sure what
version of libstdc++ it was.
Also, I seem to recall having to problems with namespaces. I think
the library was in std:: , and I know for certain that the GTK library
was in Gtk:: (the gtk-- bindings).
Maybe your Debian distro has an older lib than the Solaris system I
was using?
-D
Reply to: