Jump to content
  • Advertisement
Sign in to follow this  
Dom_152

Linker error with 64 bit binaries

This topic is 2300 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

It's been a while since I've had a linker error I couldn't solve! xD
I'm developing a little Direct3D 11 app in Visual Studio 2010 and it keeps telling me this:


error LNK2019: unresolved external symbol _D3DCompile@44
error LNK2019: unresolved external symbol _D3D11CreateDeviceAndSwapChain@48


I have this in the projects Lib directory bit:


C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64


d3d11.lib and d3dcompiler.lib are definitely set in the Additional Dependencies part of the project settings.

What's strange is that if I remove the above directory path from the Lib directory listing then all it tells me is that it can't find d3dcompiler.lib. I am most confused here! Anyone know what's going on? =/


EDIT; OK I changed the Lib directory to the 32 bit version and it's linking now. can anyone tell me why this is the case?

[Edited by - Dom_152 on July 3, 2010 1:32:02 PM]

Share this post


Link to post
Share on other sites
Advertisement

Probably because you are compiling your app as a 32 bit binary and thus need 32 bit libraries.

Thanks Cromulent, your reply solved my issue.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!