Problem with libhal.h and C++ programs.

Simone Gotti simone.gotti at email.it
Thu Jul 29 10:37:01 PDT 2004


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.

Bye!
--- 
Simone Gotti
<simone.gotti at email.it>
_______________________________________________
hal mailing list
hal at freedesktop.org
http://freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list