Unresolved external symbol __vsnprintf … (in dxerr.lib)?

后端 未结 7 735
感情败类
感情败类 2020-12-04 14:36

I am running a DirectX 11 application on windows 7 and visual studio community 2015 RC. I\'m still using functions from the DX SDK. It worked fine on VS2013 but when I switc

相关标签:
7条回答
  • 2020-12-04 15:16

    The DirectX libraries you are using are compiled with an older version of Visual Studio than you are using. Microsoft sometimes makes changes to their C runtime, creating incompatibilities between libraries compiled with different versions. __vsnprintf was an internal symbol in older versions of their C runtime, it does not exist in the 2015 RC version.

    Unfortunately, dxerr.lib (along with d3dx11.lib) have been deprecated. You have two options - you can switch back to VS2013 or you can stop using functionality from dxerr.lib. The latter is probably better, because you can duplicate its functionality by using FormatMessage now (more info in the linked article).

    0 讨论(0)
提交回复
热议问题