• 13
• 18
• 19
• 27
• 10

# Linker error with 64 bit binaries

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

## 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@44error 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 on other sites
Probably because you are compiling your app as a 32 bit binary and thus need 32 bit libraries.