Jump to content
  • Advertisement
Sign in to follow this  
alop125125

Introduction To 3d game programming with directx 11 Problems

This topic is 474 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement

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/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!