From: Shalabh A. <fin...@ya...> - 2006-02-16 08:44:35
|
I added #include "version.h" but it still gives errors although a fewer The errors are helloworld.c:16: error: incompatible types in initialization helloworld.c:16: error: initializer element is not constant helloworld.c:16: error: (near initialization for `info.type') helloworld.c:18: warning: initialization makes integer from pointer without a cast helloworld.c:20: warning: initialization makes integer from pointer without a cast helloworld.c:27: warning: initialization from incompatible pointer type make: *** [helloworld.so] Error 1 The errors are in the struct which is static GaimPluginInfo info= { GAIM_PLUGIN_MAGIC, GAIM_MAJOR_VERSION, GAIM_MINOR_VERSION, NULL, <-----------line 16 0, NULL, <-----------line 18 GAIM_PRIORITY_DEFAULT, "helloworld", <-----------line 20 "Hello World", "1.0", "Example plugin", "Merely display a \"hello world\" ", "Shalabh", "http://apress.com", plugin_load, <--------------line 27 NULL, NULL, NULL, NULL, NULL }; Thank you Gary Kramlich <gr...@re...> wrote: > Hello, > I recently bought Sean Egan's book on Gaim and I tried compiling the very > first plugin in it and i got the following errors > > > helloworld.c:13: error: `GAIM_MAJOR_VERSION' undeclared here (not in a > function)helloworld.c:13: error: initializer element is not constant > helloworld.c:13: error: (near initialization for `info.major_version') > helloworld.c:14: error: `GAIM_MINOR_VERSION' undeclared here (not in a > function)helloworld.c:14: error: initializer element is not constant > helloworld.c:14: error: (near initialization for `info.minor_version') > helloworld.c:15: error: incompatible types in initialization > helloworld.c:15: error: initializer element is not constant > helloworld.c:15: error: (near initialization for `info.type') > helloworld.c:17: warning: initialization makes integer from pointer > without a cast > helloworld.c:19: warning: initialization makes integer from pointer > without a cast > helloworld.c:26: warning: initialization from incompatible pointer type > make: *** [helloworld.so] Error 1 > > Can anyone please tell me how to get rid of the errors > > Thank you > throw a '#include "version.h"' up at the top. -- Gary Kramlich ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Gaim-devel mailing list Gai...@li... https://lists.sourceforge.net/lists/listinfo/gaim-devel --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. |