Compiling Hello World plugin

Sindhu Sundar sindhusundar88 at
Mon Sep 28 10:32:07 EDT 2009


I intend to write a plugin for pidgin, which will show all online
buddies in a tooltip when the cursor hovers over the system tray.

I read the wiki page on how to write a plugin in C, the hello world
plugin but I have been receiving these errors when I compile.

sindhu at sindhu-eee:~/Desktop/Code/Online_Buddies_Tooltip/pidgin-2.5.5/libpurple/plugins$
gcc -o helloworld helloworld.c
helloworld.c:34:18: error: glib.h: No such file or directory
helloworld.c:46:20: error: notify.h: No such file or directory
helloworld.c:47:20: error: plugin.h: No such file or directory
helloworld.c:48:21: error: version.h: No such file or directory
helloworld.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
helloworld.c:59: error: expected ‘)’ before ‘*’ token
helloworld.c:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
helloworld.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘plugin_load’
helloworld.c:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘info’
helloworld.c:142: error: expected ‘)’ before ‘*’ token
helloworld.c: In function ‘PURPLE_INIT_PLUGIN’:
helloworld.c:146: error: expected ‘{’ at end of input
sindhu at sindhu-eee:~/Desktop/Code/Online_Buddies_Tooltip/pidgin-2.5.5/libpurple/plugins$

I don't know how to proceed from here. I have basic knowledge about C,
I have compiled code in C on my Ubuntu system before this, but never
my own code.

Please help. Thanks :)

More information about the Devel mailing list