Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / FBLibraryDeclare and GCC
  RSS 2.0 ATOM  

FBLibraryDeclare and GCC
Rate this thread
 
22932
 
Permlink of this thread  
avatar
  • ADBrown85
  • Posted: 17 February 2009 11:49 PM
  • Total Posts: 1
  • Joined: 18 February 2009 07:26 AM

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:9errorexpected constructordestructor, or type conversion before '(' token
./src/ritvt_server.cpp:9errorexpected `,' or `;' before '(' token

Here is the file it’s complaining about:

#include <fbsdk/fbsdk.h>
#ifdef KARCH_ENV_WIN
    #include <windows.h>
#endif

FBLibraryDeclareritvt_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



Replies: 0