Hi,
Whenever I try to run a C++ game, I always get the same error report: "Cannot find file directory:"d3dx9.h". I have reinstalled DirectX a couple of times and I get the same error. Any suggestions?
Hi,
Whenever I try to run a C++ game, I always get the same error report: "Cannot find file directory:"d3dx9.h". I have reinstalled DirectX a couple of times and I get the same error. Any suggestions?
Did you setup your compilers include path to point to the directory that contains d3dx9.h?
Make sure you download the actual DirectX SDK and not just install the runtimes.
You must install the SDK and not just DirectX or you won't get any of the headers or libs you need to compile against it.
One thing worth mentioning...
What compiler are you using? It can be a real pain to get the DirectX SDK running with GCC or other similar compilers. You should use Visual Studio to compile DX programs.
I cant even find the d3dx9.h file anywhere on my computer, so I can't really edit the path. Also, I am using Visual C++.
That would explain the error...
Download the sdk from microsofts website.