www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/28/05:37:59.1

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Updating GPP/GCC to a new version...
Date: Thu, 28 Dec 2000 10:28:26 +0000
Organization: Customer of Energis Squared
Lines: 34
Message-ID: <0h4m4t4kud6t7hora8jetc5lm03m6o9ccp@4ax.com>
References: <92ec97$fbq$1 AT nnrp1 DOT deja DOT com>
NNTP-Posting-Host: modem-32.alaska.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 977999325 3377 62.137.53.32 (28 Dec 2000 10:28:45 GMT)
NNTP-Posting-Date: 28 Dec 2000 10:28:45 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

doubtme AT my-deja DOT com wrote:

> The following program, with my version of GPP and GCC (2.8.1) fails to
> compile with a number of errors, each basically saying "namespaces not
> implemented in this version." Is this correct? Or am I doing something
> really weird?

Upgrading to the latest GCC (2.95.2) will fix this.  However,
namespaces are still not fully implemented in that the std namespace
is in the global namespace also.  For example, your program should use
std::cout and will probably fail when this is fixed in GCC 3.0.

> If namespaces aren't implemented, what would I need to download to
> update everything to the latest version? Do I have to re-download all of
> DJGPP? or just the GCC and GPP files?

Use the zip-picker at http://www.delorie.com/djgpp and see what has
changed since the last time you downloaded.  Other packages also have
new versions, including djdev, which is now at version 2.03.

> The Program (all in one file):

The output (with GCC 2.95.2 and DJGPP 2.03):

1: foo!
2: foo!
3: foo!
4: foo!
5: foo!
6: foo!
7: foo!
8: foo!
9: foo!
10: foo!

- Raw text -


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