Hello,
Okay thanks it compiles now :) But I still have a problem with a function which is into sciwrapper.h. When I launch geany and open the debug messages it says :
Can't load plugin: /usr/local/lib/geany/pretty-print.so: undefined symbol: sci_scroll_columns
I also added the -Wall options into Makefile.am and no warnings is printed when I compile (in fact it seems to find the right function), but the linker don't.... Any idea ?
Thanks & regards,
Cedric
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Cédric Tabin a écrit :
Yes, an include of glib.h seems actually missing, it should> 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 ?
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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkqIVQQACgkQyqbACDEjVWhxjgCgjG/S/nLBw/F5otkzbUu7Fa9G
xHMAnRp3mbVdpqln7C7Y68GEVrZt2zsS
=hPgN
-----END PGP SIGNATURE-----
_______________________________________________
Geany-devel mailing list
Geany-devel@uvena.de
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel