I was following a Direct3D tutorial on directxtutorial.com and one said I needed d3dx9.h, but it wasn't in "External Dependencies" so I searched it on my computer and it wasn't there. I do have the June 2010 update of DirectX SDK so I don't know what's wrong. Please help :/
[Edited by - AaronLLF on December 24, 2010 12:17:31 PM]
d3dx9.h missing (Not solved!)
Quote:Original post by Saruman
Install the DirectX SDK
I have that, when I said Direct3D I meant DirectX SDK, sorry.
Hrm, I manually added d3dx9.h to my headers by finding the code for it on this thread: http://www.gamedev.net/community/forums/topic.asp?topic_id=433782 , but it still won't work. :/
As Saruman suggested, have you installed the SDK? Not just downloaded it, but installed it? Do you have a directory somewhere called "Microsoft DirectX SDK (June 2010)"?
Like the others suggest you need to install the sdk. Also another thing to check is to make sure visual studio is including the DirectX sdk in the include files and include libs sections of your visual studio ide.
If you have the june version it should be located here:
E:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
Of course the first part of the path depends on where you installed it. Add the include path to included dirs.
Sometimes rebuilding the whole project and/or exit VC++ might help (although I never noticed a problem when including files).
When using property pages. Tihs is what I jotted down for myself:
%(AdditionalLibraryDirectories)
is added in the Linker->General->Additional Library Directories, in the project self. Otherwise the entry there seems to just replace all library paths. Same for C/C++->General->Additional Include Directories
%(AdditionalIncludeDirectories)
Additionally check in solution explorer that the project itself also has %(AdditionalIncludeDirectories) listed (possibly as only entry.
E:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
Of course the first part of the path depends on where you installed it. Add the include path to included dirs.
Sometimes rebuilding the whole project and/or exit VC++ might help (although I never noticed a problem when including files).
When using property pages. Tihs is what I jotted down for myself:
%(AdditionalLibraryDirectories)
is added in the Linker->General->Additional Library Directories, in the project self. Otherwise the entry there seems to just replace all library paths. Same for C/C++->General->Additional Include Directories
%(AdditionalIncludeDirectories)
Additionally check in solution explorer that the project itself also has %(AdditionalIncludeDirectories) listed (possibly as only entry.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement