本文介绍了无法解析的外部符号__vsnprintf ....(在dxerr.lib中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7和Visual Studio Community 2015 RC上运行DirectX 11应用程序。我仍在使用DX SDK中的功能。它在VS2013上运行良好,但是当我切换时,仅收到以下错误:

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 switched over I get only the following error:

Error   LNK2019 unresolved external symbol __vsnprintf referenced in function "long __stdcall StringVPrintfWorkerA(char *,unsigned int,unsigned int *,char const *,char *)" (?StringVPrintfWorkerA@@YGJPADIPAIPBD0@Z)   Ancora  D:\Moody\Moody\Projects\Projects\Ancora\Ancora\dxerr.lib(dxerra.obj)    1

我只使用DXGetErrorDescriptionA函数dxerr库,当我将其注释掉时,该程序可以正常编译。我不知道出什么问题了,但是那不是从DX SDK出来的,否则其他功能会失败吗?

I only use the DXGetErrorDescriptionA function from the dxerr library and when I comment it out, the program compiles fine. I have no idea what's wrong but it can't be from the DX SDK or otherwise the other functions would fail right?

推荐答案

我在 Dx9 中使用 DXGetErrorMessage()遇到了同样的问题,发现MS提供了一个附加库来包含其他依赖项属性页可解决此问题。库名称为: legacy_stdio_definitions.lib

I experienced the same problem using DXGetErrorMessage() with Dx9 and found out that MS have provided an additional library to include in the Additional Dependencies properties page to address this problem. The library name is: legacy_stdio_definitions.lib

添加此代码可以解决我的问题。

Adding this resolved the issue for me.

这篇关于无法解析的外部符号__vsnprintf ....(在dxerr.lib中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 01:53