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 / error LNK2005 when linking against the FBX SDK 2011.2
  RSS 2.0 ATOM  

error LNK2005 when linking against the FBX SDK 2011.2
Rate this thread
 
43529
 
Permlink of this thread  
avatar
  • Melrian
  • Posted: 23 May 2010 12:46 PM
  • Total Posts: 15
  • Joined: 03 May 2007 05:45 AM

I recently updated from FBX 2009.3 to 2011.2,
linking against fbxsdk_md2008d.lib, building using the Multithreaded-Debug-DLL (/MDd) switch on building.
While the same build settings worked fine with FBX 2009.3, I am getting following linker errors with 2011.2 (symbols twice defined, once in msvcprt.lib, once in fbxsdk_md2008d.lib):

msvcprt.lib(MSVCP90.dll) : error LNK2005: “public: void __thiscall std::allocato
r<unsigned short>::destroy(unsigned short *)” (?destroy@?$allocator@G@std@@QAEXP
AG@Z) ist bereits in fbxsdk_md2008.lib(kfbx.obj) definiert.
msvcprt.lib(MSVCP90.dll) : error LNK2005: “public: void __thiscall std::allocato
r<unsigned short>::deallocate(unsigned short *,unsigned int)” (?deallocate@?$all
ocator@G@std@@QAEXPAGI@Z) ist bereits in fbxsdk_md2008.lib(kfbx.obj) definiert.
msvcprt.lib(MSVCP90.dll) : error LNK2005: “public: void __thiscall std::allocato
r<unsigned short>::construct(unsigned short *,unsigned short const &)” (?constru
ct@?$allocator@G@std@@QAEXPAGABG@Z) ist bereits in fbxsdk_md2008.lib(kfbx.obj) d
efiniert.
msvcprt.lib(MSVCP90.dll) : error LNK2005: “public: unsigned short * __thiscall s
td::allocator<unsigned short>::allocate(unsigned int)” (?allocate@?$allocator@G@
std@@QAEPAGI@Z) ist bereits in fbxsdk_md2008.lib(kfbx.obj) definiert.

Any idea how to get rid of those?
ignoring msvcprt.lib causes loads of undefined symbol errors.

Cheers,
Melrian



Replies: 1
/userdata/avatar/c6y2tieph_fbx.png

Hi Melrian,
Generally, it’s caused by incompatible lib.
Or some macro which is defined in Configuration Properties | C/C++ | Preprocessor.

I don’t know the exact cause without your project and code :-(

Author: Zhihao.Li

Replied: 24 May 2010 04:18 PM