Problem with ObjC



Hello,

I don't know if this is the right ML for my question but...
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 is use is ObjC, with GCC 3.0.2.

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

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
R&D Department
(+33) 4 72 07 44 68



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