This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: namespace problems
- From: Elfyn McBratney <elfyn at emcb dot co dot uk>
- To: Martin Gainty <mgainty at hotmail dot com>
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Jul 2003 12:12:58 +0100
- Subject: Re: namespace problems
- References: <Law10-OE61rdusluCBc00027f42@hotmail.com>
- Reply-to: cygwin at cygwin dot com
On Wed, 9 Jul 2003, Martin Gainty wrote:
> //
>
> /** @file stringfwd.h
> * This is an internal header file, included by other library headers.
> * You should not attempt to use it directly.
> */
>
> #ifndef _CPP_BITS_STRINGFWD_H
> #define _CPP_BITS_STRINGFWD_H 1
>
> #pragma GCC system_header
>
> #include <c++config.h>
>
> namespace std
> {
> //other stuff commented out until namespace is fixed
> }
>
> causes
> error C2282: 'namespace' is followed by 'std' (missing ','?)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> What is causing this?
That doesn't look like a GCC error to me. Make sure your using using g++ and the
right file extension, too (e.g. '.cc').
Elfyn
--
Elfyn McBratney, EMCB
http://www.emcb.co.uk
elfyn@emcb.co.uk
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/