pro64-support
[Top] [All Lists]

Re: extern "C" problem

To: John Hsu <jonhsu@xxxxxxxxxxxxx>
Subject: Re: extern "C" problem
From: Chandrasekhar Murthy <murthy@xxxxxxx>
Date: Wed, 07 Feb 2001 15:21:57 -0800
Cc: pro64-support@xxxxxxxxxxx
References: <3A81C761.17A3960E@xxxxxxxxxxxxx>
Sender: owner-pro64-support@xxxxxxxxxxx
John Hsu wrote:
> 
> Hi,
> 
> I'm having a problem where the Pro64 front end is rejecting the
> following test case. I believe the extern "C" qualifier can be applied
> to a single declaration without the use of braces, so this should be a
> legal C++ file.
> 
> extern "C"
> struct mutex_t
>     {
>     int sem;
>     };
> 
> > sgiCC -c test.cc
> test.cc:4: storage class specified for field `sem'

This appears to be a problem with g++.
You might want to report it to

  http://gcc.gnu.org/bugs.html

Murthy

<Prev in Thread] Current Thread [Next in Thread>