[libannodex-dev] C++ clients and the use of 'class' as
structmember names.
Silvia.Pfeiffer at csiro.au
Silvia.Pfeiffer at csiro.au
Fri Mar 10 10:50:12 EST 2006
Hi Ben,
Why can't you just use the
extern "C" {
}
declaration around these C header files in your C++ code?
Silvia.
> -----Original Message-----
> From: libannodex-dev-bounces at lists.annodex.net
> [mailto:libannodex-dev-bounces at lists.annodex.net] On Behalf
> Of Ben Martin
> Sent: Thursday, 9 March 2006 3:53 PM
> To: libannodex-dev at lists.annodex.net
> Subject: [libannodex-dev] C++ clients and the use of 'class'
> as structmember names.
>
>
> Hi,
> I might have forgotten to report this a while back :/
>
> I'm using these versions.
> libcmml-0.9.1-1.fc4
> libannodex-0.7.3-3.fc4
>
> And there are a few struct members which have a name 'class' which
> makes C++ clients of both libraries fail to compile without doing a
> little hacking on the cmml/annodex headers. I'm not sure what you want
> to rename this member too, so patches not attached...
>
> Thanks.
>
> /usr/include/annodex/anx_types.h:75: error: expected unqualified-id
> before 'class'
> /usr/include/annodex/anx_types.h:75: error: abstract
> declarator 'char*'
> used as declaration
> /usr/include/annodex/anx_types.h:75: error: expected ';'
> before 'class'
> /usr/include/annodex/anx_types.h:104: error: expected unqualified-id
> before 'class'
> /usr/include/annodex/anx_types.h:104: error: abstract
> declarator 'const
> char*' used as declaration
> /usr/include/annodex/anx_types.h:104: error: expected ';'
> before 'class'
> /usr/include/cmml.h:209: error: expected unqualified-id before 'class'
> /usr/include/cmml.h:209: error: abstract declarator 'char*' used as
> declaration
> /usr/include/cmml.h:209: error: expected ';' before 'class'
> /usr/include/cmml.h:244: error: expected unqualified-id before 'class'
> /usr/include/cmml.h:244: error: abstract declarator 'char*' used as
> declaration
> /usr/include/cmml.h:244: error: expected ';' before 'class'
>
>
More information about the libannodex-dev
mailing list