|
I’m having a problem compiling my plugin using GCC through Cygwin, and I was hoping someone could help.
It’s complaining about the FBLibraryDeclare line, saying:
./src/ritvt_server.cpp:9: error: expected constructor, destructor, or type conversion before '(' token ./src/ritvt_server.cpp:9: error: expected `,' or `;' before '(' token
Here is the file it’s complaining about:
#include <fbsdk/fbsdk.h>
#ifdef KARCH_ENV_WIN
#include <windows.h>
#endif
FBLibraryDeclare( ritvt_server ) {
FBLibraryRegister ( RITVT_Server );
FBLibraryRegister ( RITVT_Server_Layout ); }
FBLibraryDeclareEnd;
bool FBLibrary::LibInit() { return true; }
bool FBLibrary::LibOpen() { return true; }
bool FBLibrary::LibReady() { return true; }
bool FBLibrary::LibClose() { return true; }
bool FBLibrary::LibRelease() { return true; }
Does anyone have any ideas? Is there some setting with GCC that needs to be set for this? Has anyone on the Mac (and thus using GCC) run into this?
One interesting thing is that if I just put in a #define FBLibraryDeclare, it will say it’s being redefined and was previously defined in fbcomponent.h, so it’s definitely picking it up.
Anyway, any help would be appreciated.
Thanks,
Andy
|