Skip to main content
GameDev.net gamedev.net
🔒 Locked

Introduction To 3d game programming with directx 11 Problems

Started by alop125125 Jun 6, 2017 at 10:22 PM 1 replies 1.5k views
Original Post
alop125125
alop125125

I am using the book mentioned above and any of the test code gives me this error:


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) Init Direct3D Z:\d3d11book\Introduction-to-3D-Game-Programming-With-DirectX11-master\Introduction-to-3D-Game-Programming-With-DirectX11-master\Chapter 4 Direct3D Initialization\Init Direct3D\dxerr.lib(dxerrw.obj) 1 


I made sure that DxErr.h was linked.

iedoc
iedoc

did you download the legacy directx sdk? or are you using directx from the windows?

DXERR.lib that's in the legacy directx sdk is not compatible with VS 2015 (static libraries often are not compatible with different c++ compilers)

So you could do a couple different things. One is don't use this library, all it's used for is to get a string representing error codes, you could just do this yourself.

The other thing is download the windows sdk and use the directx libraries from there instead, which is what you should be doing anyway if you are not

https://blogs.msdn.microsoft.com/chuckw/2012/04/24/wheres-dxerr-lib/

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.