pro64-support
[Top] [All Lists]

extern "C" problem

To: pro64-support@xxxxxxxxxxx
Subject: extern "C" problem
From: John Hsu <jonhsu@xxxxxxxxxxxxx>
Date: Wed, 07 Feb 2001 14:08:33 -0800
Sender: owner-pro64-support@xxxxxxxxxxx
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'



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