Cannot find static symbol

Cannot find static symbol

Anonymous
Not applicable
1,868 Views
2 Replies
Message 1 of 3

Cannot find static symbol

Anonymous
Not applicable

Hello,

 

Just trying to use the SDK for the first time, and I want to use this line:

 

FbxAnimStack* currAnimStack = mFBXScene->GetSrcObject<FbxAnimStack>(0);

But including this line results in the following linker error:

 

error LNK2001: unresolved external symbol "public: static class fbxsdk::FbxClassId fbxsdk::FbxAnimStack::ClassId" (?ClassId@FbxAnimStack@fbxsdk@@2VFbxClassId@2@A)

How can this be resolved? I have the library linked and I am using many of the other SDK functions fine, I've got the mesh loading and exporting in my own format, I've got the skeletal structure loaded. But now that I want the animation data loaded, I can't get past the above block. That line makes all the difference to whether it looks for this particular static symbol or not.

 

Best wishes and thanks in advance,

Matt

 

 

 

 

0 Likes
1,869 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
OK, I resolved it. I wasn't aware that the library with the md suffix, libfbxsdk-md.lib, would be necessary. I wonder now, what MD stands for in this context?
0 Likes
Message 3 of 3

Anonymous
Not applicable

libfbxsdk-md.lib is a static library for Multi-threaded DLL runtime. Try using FBXSDK_SHARED. Be careful, likning statically to fix this SDK issue, means that you are redistributing FBX code, which you are not allowed without Autodesk approval...

0 Likes