[Geany-devel] Geany Plugin with Libxml

Chow Loong Jin hyperair at xxxxx
Tue Jun 23 19:00:51 UTC 2009

On Wednesday 24,June,2009 01:53 AM, � wrote:
> Hello,
> I try to code a small plugin that uses libxml2 to parse some data. I
> searched a lot, but I don't understand how I can tell Geany that I want to
> use that lib...
> To compile my file, I use the following command lines :
> compilation
> gcc -o "output.o" -Wall -c -fpic "plugin.c" `pkg-config --cflags geany`
> `pkg-config --cflags libxml-2.0`
> for the shared library
> gcc -shared  -o "output.so" "output.o"
I think you'll need to link it as well, so try this:
gcc -shared -o output.so output.o `pkg-config --libs geany libxml-2.0`

Chow Loong Jin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.geany.org/pipermail/devel/attachments/20090624/1890b2a4/attachment.pgp>

More information about the Devel mailing list