[Geany-devel] sciwrappers.h not compilable ?
ban-ubuntu at xxxxx
Sun Aug 16 18:50:44 UTC 2009
-----BEGIN PGP SIGNED MESSAGE-----
Cédric Tabin a écrit :
> I just try to include sciwrappers.h into my header and when I
> compile I get a lot of strange errors like that :
> sciwrappers.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘->’ token
> All the lines with a glib type (gchar, gboolean, ...) have that
> error and I really don't see what it means... I checked the file and
> it seems correct to me. I also tried to add the include of glib.h
> but that does nothing.
> Anyone see what appen ?
Yes, an include of glib.h seems actually missing, it should
probably be added.
Well, after a small research, it is quite more complex.
First, to have ScintillaObject to be defined in ScintillaWidget.h, to
have to define PLAT_GTK to a value passing the #if preprocessor
directive (e.g. 1). But ScintillaWidget.h misses to include gtk/gtk.h too.
Then if you would include sciwrappers, for now you have to do:
#define PLAT_GTK 1
/* #include <glib.h> // usless as GTK depends on GLib and includes it */
But all in all, I'm not sure it is an intentional behaviour, I'll let
a Geany developer go deeper in this.
But AFAIR you should use the new geanyplugin.h header in place of all
other Geany header, with which to haven't any problem, then it fixes
the problem for your use.
 not sure of the policy of inludes in header in Geany code, way for
Enrico, Nick or Frank.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Devel