As an Integration to my previous post: as I try to include Clutter headers in any project I have (and that compiles fine) I get:
/usr/include/clutter/clutter-fixed.h:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’ /usr/include/clutter/clutter-fixed.h:47: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ClutterAngle_REPLACED_BY_CoglAngle’ /usr/include/clutter/clutter-fixed.h:288: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ClutterFixed_REPLACED_BY_CoglFixed’ /usr/include/clutter/clutter-fixed.h:314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ClutterFixed_REPLACED_BY_CoglFixed’ /usr/include/clutter/clutter-fixed.h:325: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_sinx_REPLACED_BY_cogl_fixed_sin’ /usr/include/clutter/clutter-fixed.h:326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_sini’ /usr/include/clutter/clutter-fixed.h:328: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_tani’ /usr/include/clutter/clutter-fixed.h:330: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_atani’ /usr/include/clutter/clutter-fixed.h:331: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_atan2i’ /usr/include/clutter/clutter-fixed.h:407: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_sqrtx’ /usr/include/clutter/clutter-fixed.h:408: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_sqrti’ /usr/include/clutter/clutter-fixed.h:410: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘clutter_log2x’ /usr/include/clutter/clutter-fixed.h:411 ... at the beginning of the errors.... What can this be??? 2009/4/25 Dario Rossi <[email protected]> > I'm trying to experiment with Clutter...but I'm stuck with some problems. > Let's note that I want to use it in a C++ project, now clutterMM doesn't > compile, but honestly I wanted to use the C library and incapsulate it in > some C++ classes of my own. > > If I try to JUST include the lib in a empty project like this: > > > #include <clutter/clutter.h> > > > int main() { > > return 0; > > } > > I get a nightmare of errors on the include file, starting like: > > In file included from /usr/include/clutter/clutter-color.h:30, > from /usr/include/clutter/clutter-actor.h:32, > from /usr/include/clutter/clutter.h:29, > from ../main.cpp:3: > /usr/include/clutter/clutter-fixed.h:39: error: expected constructor, > destructor, or type conversion before ‘typedef’ > /usr/include/clutter/clutter-fixed.h:47: error: ‘gint32’ does not name a > type > /usr/include/clutter/clutter-fixed.h:287: error: ‘G_INLINE_FUNC’ does not > name a type > /usr/include/clutter/clutter-fixed.h:313: error: ‘G_INLINE_FUNC’ does not > name a type > /usr/include/clutter/clutter-fixed.h:325: error: ‘ClutterFixed’ does not > name a type > /usr/include/clutter/clutter-fixed.h:326: error: ‘ClutterFixed’ does not > name a type > /usr/include/clutter/clutter-fixed.h:328: error: ‘ClutterFixed’ does not > name a type > /usr/include/clutter/clutter-fixed.h:330: error: ‘ClutterFixed’ does not > name a type > ... > > and so on, I even tried to put extern "C" around the include, but still > gives the same results. > > Note that I had two folders in usr/include one is clutter-0.8 the other > clutter-0.9 (Ubuntu). I set 2 symlinks (but the problem was even before) > like this: > > ln -s clutter-08/clutter clutter > ln -s clutter-09/cogl cogl > > no effect at all... > > Any suggestion? > > > >
