Linking a plugin with kdelibs / manually

cfchris6 cfchris6 at yahoo.de
Sun Mar 23 16:46:07 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I am writing my first plugin for libpurple at the moment. It is a core plugin and makes use of the dcop_call() function, declared in "dcop/dcopc.h" which is part of the kdelibs sources.
The plugin gets compiled and linked correctly, still using the plugins makefile with helloworld.so target, because I nowhere found an example on how to compile and link a plugin using simply gcc and ld.
But when I try to load the plugin in Pidgin it complains the symbol dcop_call is undefined, so probably I need to link that function in statically. (if possible this would be the best)
So how are the commands to build a libpurple plugin just using gcc and ld and link in an external library statically?

Christian Franke
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH5sGPkMF7UBEyHrMRAkw5AJ41oWoFFhEsK7/aA8VP1bGP+N7WAgCg1WZM
x28AH4xWOLEs45SisPhofaY=
=aIy9
-----END PGP SIGNATURE-----




More information about the Devel mailing list