problems in directx 9: miising d3dx9.h

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

Recommended Posts

There have been many posts on this subject in the past and i think i have read most of them and i am still at a loss. So please bear with me. My environment: Windows 7, Visual Studio 2013 Express and DirectX June 2010 (which downloaded w/o any issue). In the tutorial i am following i encounter no problems w/ d3d9.h but when i include d3dx9.h i get 2 errors generated by the compiler: 1.- error C1083 Cannot open include file "d3dx9.h" 2.- Intellisense cannot open source file "d3dx9.h" Here's where i am: 1._In VC++ directories the following paths have been added: In Libray directories: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib; In Include directories: C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)Include; 2._In my project, in the Solution Explorer, i open up External Dependencies and i see a list of header files, d3d9.h is there but NOT d3dx9.h So where is d3dx9.h??

Share on other sites

#2 (and #1) is your problem. Dependencies are library (.lib) files, not header files.

In #1, your library directory should be “C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86” or “C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64”—you have to specify the platform.

It can’t find “d3dx9.h” because you’ve added it as a dependency, which causes it search for libraries under that name, and since your library path is wrong (in addition to d3dx9.h not being a library and not being under the library directories) it can’t find it.

Also, ensure it is #include <d3dx9.h>, not #include "d3dx9.h".

L. Spiro

Edited by L. Spiro

Share on other sites
Thank you, i have been obsessing so much over this that, of course, it seems like i ovverlooked what should have been obvious. Thanks for the reply it set me straight!! There was an error at the end of include direstories path a simple miising backslash before Include. Sorry and thank you!