delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/09/11:51:30

Message-ID: <B0000071841@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: Charles Krug <charles AT mail DOT pentek DOT com>, djgpp AT delorie DOT com
Date: Tue, 9 Feb 1999 18:50:39 +0200
MIME-Version: 1.0
Subject: Re: using namespace std;
In-reply-to: <36C04D83.3414B099@mail.pentek.com>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp AT delorie DOT com

On 9 Feb 99, at 10:00, Charles Krug wrote:

> Camilo wrote:
> 
> > Hi,
> >
> >  I use djgpp to check my code for ANSI C++ compliance. However "using
> > namespaces" does not apparently work. Am I right?
> 
> djgpp is a port of the GNU c++ compiler.  Since gcc and c++ didn't
> support namespaces at version 2.81, neither does djgpp using gcc/gxx
> 2.81.
> 
> There is a GNU version out there called egcs(sp?) that does support
> namespaces, but my understanding is that it's still pretty embryonic.  My
> information may be out of date, however.

I cannot tell much about implementation of namespaces in egcs-1.1.1 as I haven't
used them. At least information in egcs homepage says that namespaces are 
supported. But I don't think that egcs-1.1.1 is so "embryonic". 

Main reason why I suggested DJ to put DJGPP port of egcs-1.1.1 in directory
v2gnu/beta instead of simply v2gnu was problems with C++ exceptions handling.
Currently the source of these problems is found and perhaps next version
of binary archives will perhaps no more have this problem. 

There are problems with using STL (linker errors) but I don't thing gcc-2.8.1 is
better here. As I know there is also similar problems even under Linux.
Also collect2 from DJGPP "official" binaries of egcs-1.1.1 fails to recompile source
if that is needed and command line options -frepo is being used. But as I said
I think that gcc-2.8.1 is not better.

So I think it could be Ok to try egcs-1.1.1. However if exceptions support is really
needed there is 2 possible ways how to fix it:
   -  applying rather small patch to egcs-1.1.1 sources for DJGPP and rebuilding;
   -  using development snapshots of binutils;
 
> My quick search of the FAQ and the info for "namespace"  came up dry.
> But I'm certain that if it's in the docs, Eli knows precisely where it
> is.
> 

Andris

- Raw text -


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