Sorry to bother you all with this but I can’t seem to figure this out.
I was running with a git master branch that I think was 2.5. I had a plugin that I could build and it worked OK. At the weekend I did a git pull for master and now I can’t get my plugin to build. I reread the plugin.README and dissector.README
files and I think I’ve done everything necessary to code the plugin in the new style.
I’ve tried copying some of the code from the hello.c example, specifically I’ve added this to the top of my plugin:
#ifndef
VERSION
#define VERSION
"0.0.0"
#endif
#define
DLL_PUBLIC __attribute__((__visibility__("default")))
DLL_PUBLIC
const gchar plugin_version[] =
VERSION;
DLL_PUBLIC
const gchar plugin_release[] =
VERSION_RELEASE;
DLL_PUBLIC
void plugin_register(void);
The VERSION line errors on:
- DLL_PUBLIC – expected a type specifier
- const – expected a ‘{‘
I’ve got more issues, but I suspect they relate to DLL linkage (lots of _imp_XXXX link errors).
The DLL_PUBLIC error seems pretty fundamental. What am I doing wrong?
I’m using VS2015 on Windows 10.
Thanks and regards…Paul