我想編譯舊程序,它支持DirectX使用作品庫10.完整列表編譯DX10程序:連接錯誤在Visual Studio 2015
#pragma comment(lib, "d3d10.lib")
#pragma comment(lib, "d3dx10.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "dxerr.lib")
#pragma comment(lib, "dxguid.lib")
鏈接錯誤:
dxerr.lib(dxerrw.obj) : error LNK2019: unresolved external symbol _vsnwprintf referenced in function "long __cdecl StringVPrintfWorkerW(unsigned short *,unsigned __int64,unsigned __int64 *,unsigned short const *,char *)" ([email protected]@[email protected])
爲人們尋找更好的答案,看到這個重複的問題:http://stackoverflow.com/questions/31053670/unresolved-external-symbol -vsnprintf-in-dxerr-lib – leetNightshade