I downloaded the FBX SDK a while ago and have been trying to integrate it with my code for a custom importer. The problem I am running into is that when I try to compile, I get the error "expected unqualified-id before numeric constant" in 3 different places: kfbxobject.h, kfbxnode.h, and kfbxtexture.h, all in include/fbxfilesdk/kfbxplugins.
I'm using GCC 4.3.2 in Code::Blocks 10.05 on a Linux 2.6.32 x86_64 system, specifically Debian 6.0.2 (Squeeze, Stable). The errors are whenever it uses an enum called eFbxPropertyCallback:
virtual bool PropertyNotify(eFbxPropertyCallback, KFbxProperty*); //kfbxobject.h
virtual bool PropertyNotify(eFbxPropertyCallback pType, KFbxProperty* pProperty); //kfbxnode.h
virtual bool PropertyNotify(eFbxPropertyCallback pType, KFbxProperty* pProperty); //kfbxtexture.h
eFbxPropertyCallback is declared in kfbxobject (interestingly, just above the declaration for kFbxObject::PropertyNotify, as such:
// property callbacks
typedef enum {
eFbxProperty_SetRequest,
eFbxProperty_Set,
eFbxProperty_Get
} eFbxPropertyCallback;
I have tried searching for this error on the internet, and have found that generally it occurs due to a naming conflict. However, I know I have declared nothing of the sort in my project, and a search (using the "find" command) shows that there are only 4 places eFbxPropertyCallback anywhere in any libraries I'm using: the 4 places I've presented here. More importantly, if I try changing the name (I've tried everything from eFbxCallback to eFbxRandomEnumName) and using that in these places, I still get the same error.
Please, any help would be appreciated. I have no clue why it is doing this or how to fix it.