d3dx9.h cannot be found

Guys i already installed DirectX SDK june 201. I can already use directX but when i try to include d3dx9.h it says no such file directory. What should i do?

1
2
#include <d3dx9.h>
#pragma comment(lib, "d3dx9.lib") 


Error:

fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory
Last edited on

What compiler are you using?

Anyway, its likely the path of DirectX (the installation folder) is not known to your compiler hence why it cant see the header file, i.e. the environment variable has not been set or its not present in the compiler.

Your compiler will have a list of search paths where it looks for header files etc., check its in there.
Topic archived. No new replies allowed.