[Geany-devel] SF.net SVN: geany-plugins:[895] trunk/geany-plugins/pretty-printer/src

Nick Treleaven nick.treleaven at xxxxx
Fri Aug 14 11:26:49 UTC 2009

On Fri, 14 Aug 2009 12:24:41 +0200
Cédric Tabin <tabin.cedric at gmail.com> wrote:

> Thansk for your advices. As I never developped very much in C with header
> files I don't know what's the best... I just see in another plugin that it
> was done like that and thought that it was the right way. However I don't
> understand why the 'extern' before my gean_* variables didn't work. I just
> saw an error into the debug messages of Geany. Maybe you can explain me that
> ?

I haven't looked at your sources. But you should use extern for header
declarations. You also need to declare *one* definition for each
symbol, usually in the 'main' file.


More information about the Devel mailing list