www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/08/11:51:19

Date: Sun, 8 Aug 1999 14:38:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: dnult <dnult AT worldnet DOT att DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: parse error on 'using namespace std;'
In-Reply-To: <7odlbc$p9k$1@bgtnsc03.worldnet.att.net>
Message-ID: <Pine.SUN.3.91.990808143833.23423p-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 5 Aug 1999, dnult wrote:

> int main() {
>    using std::copy;
>    using std::cout;
>    ...
> 
> The compiler complains "In function int main(), parse error before 'using'".
> If I comment out the namespace specifiers the code compiles fine, (but
> doesn't run).

GCC 2.8.1 doesn't support namespaces, AFAIK.

- Raw text -


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