-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
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[1] 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 <gtk/gtk.h> /* #include <glib.h> // usless as GTK depends on GLib and includes it */ #include <sciwrappers.h> 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.
Regards, Colomban
[1] not sure of the policy of inludes in header in Geany code, way for Enrico, Nick or Frank.