C++ Pidgin plugin
elb at pidgin.im
Sun Nov 29 20:30:59 EST 2009
Michał Dulko spake unto us the following wisdom:
> Is there any way to write Pidgin plugin in C++? I tried, but sample
> helloworld plugin is not visible in plugin list, when I compile it as
Yes, but it requires that you understand the interactions between C
The primary thing to be aware of is that Pidgin expects any symbols it
uses to be C symbols, not C++ symbols; this means that any functions
you provide for the Pidgin interface must be declared as 'extern "C"'.
Static constructors may also not be called, I'm not sure.
This is a topic which is beyond the scope of this mailing list, but
should be covered by most comprehensive C++ texts.
The laws that forbid the carrying of arms are laws [that have no remedy
for evils]. They disarm only those who are neither inclined nor
determined to commit crimes.
-- Cesare Beccaria, "On Crimes and Punishments", 1764
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 481 bytes
Desc: Digital signature
More information about the Devel