|
Hi there!
I’m starting to make a wrapper for the FBX SDK and I’m having some trouble with compilation. I have added the proper .lib files as an input to the linker and I have set up the fbx include directory in ‘Additional include directories’ field of the project.
With this simple code:
// CBFBXImporter.h
#pragma once
#include <fbxsdk.h>
#include <fbxfilesdk/kfbxplugins/kfbxdatatypes.h>
#include <fbxfilesdk/kfbxio/kfbximporter.h>
#include <fbxfilesdk/kfbxplugins/kfbxsdkmanager.h>
#include <fbxfilesdk/kfbxplugins/kfbxscene.h>
#include <stdio.h>
#include <fbxfilesdk/fbxfilesdk_nsuse.h>
using namespace System; //using namespace fbxsdk_2011_3_1;
namespace CBFBXImporter
{
public ref class FbxSdkManager
{
public:
FbxSdkManager(KFbxSdkManager* pPointer)
{
m_pSDK = pPointer;
}
~FbxSdkManager()
{
if(m_pSDK!=NULL)
m_pSDK->Destroy();
}
static FbxSdkManager^ Create()
{
KFbxSdkManager* result;
result = fbxsdk_2011_3_1::KFbxSdkManager::Create();
if(result == NULL)
return nullptr;
else
return gcnew FbxSdkManager(result);
}
private:
KFbxSdkManager* m_pSDK;
}; }
I get several linking error regarding KFbxDataTypes
CBFBXImporter.obj : error LNK2020: unresolved token (0A000A6B) “class fbxsdk_2011_3_1::KFbxDataType fbxsdk_2011_3_1::DTInteger” (?DTInteger@fbxsdk_2011_3_1@@3VKFbxDataType@1@A)
1>CBFBXImporter.obj : error LNK2020: unresolved token (0A000B10) “class fbxsdk_2011_3_1::KFbxDataType fbxsdk_2011_3_1::DTLayerElementUserData” (?DTLayerElementUserData@fbxsdk_2011_3_1@@3VKFbxDataType@1@A)
1>CBFBXImporter.obj : error LNK2020: unresolved token (0A000B3C) “private: static void (__cdecl* fbxsdk_2011_3_1::KFbxAnimCurveKey::mDeallocatorFct)(class fbxsdk_2011_3_1::KFbxAnimCurveKeyImpl *)” (?mDeallocatorFct@KFbxAnimCurveKey@fbxsdk_2011_3_1@@
0P6AXPAVKFbxAnimCurveKeyImpl@2@@ZA)
1>CBFBXImporter.obj : error LNK2020: unresolved token (0A000B3D) “private: static class fbxsdk_2011_3_1::KFbxAnimCurveKeyImpl * (__cdecl* fbxsdk_2011_3_1::KFbxAnimCurveKey::mCopyAllocatorFct)(class fbxsdk_2011_3_1::KFbxAnimCurveKeyImpl *)” (?mCopyAllocatorFct@KFbxAnimCurveKey@fbxsdk_2011_3_1@@
0P6APAVKFbxAnimCurveKeyImpl@2@PAV32@@ZA)
1>CBFBXImporter.obj : error LNK2020: unresolved token (0A000BC0) “public: static bool fbxsdk_2011_3_1::KFCurve::sConvertAutoTimeIndepedent” (?sConvertAutoTimeIndepedent@KFCurve@fbxsdk_2011_3_1@@2_NA)
Anyone knows why this could be happening?
|
|
|