vs2019报错unresolved external symbol __vsnwprintf

使用vs2019编译旧版DXSDK_Jun10,会报错:

dxerr.lib(dxerrw.obj) : error LNK2019: unresolved external symbol __vsnwprintf referenced in function "long __stdcall StringVPrintfWorkerW(unsigned short *,unsigned int,unsigned int *,unsigned short const *,char *)" (?StringVPrintfWorkerW@@YGJPAGIPAIPBGPAD@Z)

解决方案:
Project / Properties打开工程属性,Linker / Command Line / Additional Options添加

legacy_stdio_definitions.lib

猜你喜欢

转载自blog.csdn.net/tangyin025/article/details/126297755