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® FBX® / FBX SDK / Linking problem when making a managed wrapper to FBX SDK
  RSS 2.0 ATOM  

Linking problem when making a managed wrapper to FBX SDK
Rate this thread
 
52463
 
Permlink of this thread  
avatar
  • eduwushu
  • Posted: 17 February 2011 07:40 PM
  • Total Posts: 1
  • Joined: 18 February 2011 03:32 AM

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(KFbxSdkManagerpPointer)
 
{
 m_pSDK 
pPointer;
 
}

 
~FbxSdkManager()
 
{
 
if(m_pSDK!=NULL)
 
m_pSDK->Destroy();
 
}

 
static FbxSdkManagerCreate()
 
{
 KFbxSdkManager
result;
 
result fbxsdk_2011_3_1::KFbxSdkManager::Create();
 if(
result == NULL)
 return 
nullptr;
 else
 return 
gcnew FbxSdkManager(result);
 
}
 
private:
 
KFbxSdkManagerm_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?



Replies: 0