I'm trying to compile a program as 64 bits, it works perfectly with a simple console program but if I use my directX program it says me: error LNK1181: cannot open input file 'd3dx9.lib'. When I compile my directX program as 32 bits it works but in x64 it doesn't. I think visual studio 2013 has a default directory of directx with is x86 but I don't know if I'm right or not. I need to use x64 directX libs. How could I link them? Thanks for read.
1
There are 1 best solutions below
Related Questions in 64-BIT
- (x64 Nasm) Writeline function on Linux
- How to return a 16 bit value as 64 bit?
- iOS: app doesn't pass the upload for the architecture
- Can't open mkl_intel_s_dll.lib in 64bit Visual Studio environment
- Intel x64 instructions CMPSB/CMPSW/CMPSD/CMPSQ
- Zlib decompression method warning using ios 64bit Architecture
- Assembly x64: Using MULPD instruction with integer
- VirtualBox: VERR_VMX_MSR_VMXON_DISABLED
- 64bit bitmask and javascript
- Delphi xe2 Error compiling ASM code with x64 compiler. Unsupported language feature: 'ASM'
- Cordova 3.8.0 Build Causes Errors in Iphone Apps locking up at Splash Screen
- DirectX libs in x64 program
- Is there any reason to still use int as opposed to long on a 64 bit machine?
- In 64bit R, what should my memory.limit() be set to?
- NASM issue on OSX 64-bit
Related Questions in DIRECTX
- Make screenshot of DirectX window that is hidden and doesn't have focus
- Draw a sphere on a billboard with world normal from a pointlist
- DirectX - Pixel Shader 3.0 doesn't work
- D3D11 Post Shader Results in Dark Image
- Drawing a textured quad looks distorted
- DirectX 9 vertex colors ingored when lighting is enabled?
- Constant buffer is empty when passed HLSL C++
- D3DX11CompileFromFile Invalid Arguments C++
- DirectX libs in x64 program
- How to use a huge array in HLSL (error X4505)
- Relationship between AFX_WM_DRAW2D and WM_PAINT in MFC Application
- Textured cube renders blank in DirectX
- Invoke button in a game / external program C#
- DirectX VSIX Installer Installation Failed
- Normals are not transfered to DirectX 11 shader correctly - random, time-dependent values?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
VS 2013 comes with the Windows 8.1 SDK, and as of the Windows 8.0 SDK the DirectX SDK is considered deprecated. All versions of D3DX (D3DX9, D3DX10, and D3DX11) are also deprecated and are only available with the legacy DirectX SDK. You can use the legacy DirectX SDK in combination with the Windows 8.x SDK, but it requires the reverse path setup of VS 2010 or earlier. See MSDN and this blog post.
In your case, you probably don't have your project's VC++ Directories properties set up correctly for the x64 configurations:
Executable path:
$(ExecutablePath);$(DXSDK_DIR)Utilities\bin\x86$(ExecutablePath);$(DXSDK_DIR)Utilities\bin\x64;$(DXSDK_DIR)Utilities\bin\x86Include path
$(IncludePath);$(DXSDK_DIR)IncludeLibrary path
$(LibraryPath);$(DXSDK_DIR)Lib\x86$(LibraryPath);$(DXSDK_DIR)Lib\x64Note: If you were using the
v120_xpPlatform Toolset for Windows XP support, you'd actually be using the Windows 7.1A SDK, and would go with the same path order as VS 2010 which is the reverse of the ones shown here--i.e. the DirectX SDK paths would go first, then the standard paths. See this post if you are trying to target Windows XP.This all said, unless you are specifically targeting Windows XP the recommendation is to (a) use Direct3D 11 instead of legacy Direct3D 9, (b) avoid using the legacy DirectX SDK at all, and (c) avoid using D3DX9/D3DX10/D3DX11.
See also: