Problem with libhal.h and C++ programs.
David Zeuthen
david at fubar.dk
Thu Jul 29 10:49:24 PDT 2004
On Thu, 2004-07-29 at 17:37 +0000, Simone Gotti wrote:
> Sorry for the silly question.
>
> I'm making a C++ program that will use libhal.
>
> The problem is that if I include it (libhal.h), the c++ prepocessor returns an
> error.
>
> /usr/include/hal/libhal.h:264: error: expected `,' or `...' before "namespace"
>
> (this with gcc 3.4, with 3.3.3 the error text is little different)
>
> I know that you have included the header in extern "C" brakes and they are
> correctly used but I think that the use of "namespace" is always reported
> like an error.
>
> Am I doing something wrong? Thanks.
>
Hi,
I've now changed libhal.h to not use any C++ keywords.
Thanks,
David
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list