Problem with ObjC



Hello,

I'm currently developing an application using gtk1.2 which must be
cross-plateform, that's why I'm in the process of converting it to
gtk2.0.

The language I use is ObjC, with GCC 3.0.2.
The glib is 1.3.11.

While trying to compile a source file including glib.h, I'v got the
following error :

In file included from /usr/local/include/glib-2.0/glib/giochannel.h:31,
                 from /usr/local/include/glib-2.0/glib.h:44,
                 from XMLNode.h:9,
                 from XMLNode.m:5:
/usr/local/include/glib-2.0/glib/gmain.h:146: parse error before "id"


In fact, "id" is a reserved word in objc... (generic object pointer)

May we make a change, or is there a way for me to avoid this ?

Thank you,
-- 
Cedric Marcone
MDEO Z:P France
Departement R&D
(+33) 4 72 07 44 68



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]