Hello,<br><br>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 :<br><br><span style="font-family: courier new,monospace;">Can't load plugin: /usr/local/lib/geany/pretty-print.so: undefined symbol: sci_scroll_columns</span><br>
<br>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 ?<br><br>Thanks & regards,<br>Cedric<br>
<br><div class="gmail_quote">On Sun, Aug 16, 2009 at 8:50 PM, Colomban Wendling <span dir="ltr"><<a href="mailto:ban-ubuntu@club-internet.fr">ban-ubuntu@club-internet.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi,<br>
<br>
Cédric Tabin a écrit :<br>
<div><div></div><div class="h5">> I just try to include sciwrappers.h into my header and when I<br>
> compile I get a lot of strange errors like that :<br>
><br>
> sciwrappers.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or<br>
> ‘__attribute__’ before ‘->’ token<br>
><br>
> All the lines with a glib type (gchar, gboolean, ...) have that<br>
> error and I really don't see what it means... I checked the file and<br>
> it seems correct to me. I also tried to add the include of glib.h<br>
> but that does nothing.<br>
><br>
> Anyone see what appen ?<br>
</div></div>Yes, an include of glib.h seems actually missing, it should<br>
probably[1] be added.<br>
Well, after a small research, it is quite more complex.<br>
First, to have ScintillaObject to be defined in ScintillaWidget.h, to<br>
have to define PLAT_GTK to a value passing the #if preprocessor<br>
directive (e.g. 1). But ScintillaWidget.h misses to include gtk/gtk.h too.<br>
Then if you would include sciwrappers, for now you have to do:<br>
  #define PLAT_GTK 1<br>
  #include <gtk/gtk.h><br>
  /* #include <glib.h> // usless as GTK depends on GLib and includes it */<br>
  #include <sciwrappers.h><br>
But all in all, I'm not sure it is an intentional behaviour, I'll let<br>
a Geany developer go deeper in this.<br>
<br>
But AFAIR you should use the new geanyplugin.h header in place of all<br>
other Geany header, with which to haven't any problem, then it fixes<br>
the problem for your use.<br>
<br>
Regards,<br>
Colomban<br>
<br>
[1] not sure of the policy of inludes in header in Geany code, way for<br>
Enrico, Nick or Frank.<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.11 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAkqIVQQACgkQyqbACDEjVWhxjgCgjG/S/nLBw/F5otkzbUu7Fa9G<br>
xHMAnRp3mbVdpqln7C7Y68GEVrZt2zsS<br>
=hPgN<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
</blockquote></div><br>