Sign in to follow this  
NitroNbg

error lnk1104

Recommended Posts

Hi everybody.
I've started learning game development from directxtutorial and I've ran into error lnk1104: cannot open file 'd3dx11.lib' error.
I'm using Visual Studio 11 Beta and Win7 x64. I've compared, and eventually copy/pasted the code from the website but the error doesn't change, let alone, solve itself.
P.S. I've added the SDK directories to the VC++ Directories as well as Additional Dependencies list, but nothing changes. Thanks in advance Edited by NitroNbg

Share this post


Link to post
Share on other sites
This might sound trivial/stupid/offensive but I still have to ask.
Have you downloaded and install DirectX SDK? Have you added [i]DirectX SDK\lib\x86 [/i]to linker's [i]Aditional Library Directories[/i]?

If you are using Visual Studio 11 Beta without DirectX SDK, then d3dx11 library doesn't exist, it was deprecated. You'll have to write texture loading yourself, compile shaders manually or through VS, and do yourself whatever other features d3dx11 provided.

P.S. It's called Visual Studio 2012 now, old version was 11, you might need to update.

Share this post


Link to post
Share on other sites
Yes I've added both x86 and x64 directories to the additional dependencies. And the SDK I downloaded is June 2010, but I don't recall there's any newer SDK published. Thanks about the info for the VS, I might upload it, though I don't want to.

Share this post


Link to post
Share on other sites
I'm not sure but link the debug library to see if it works "d3dx9d.lib". And ensure that you include the Lib and Include path of DX SDK after all of the included libraries such as Windows SDK.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this