fatal error C1083: Cannot open include file: 'd3dx9.h':
Hi I am new for Directx , I installed directx SDK DXSDK_Nov08.
I am not able to run samples which already came with sdk. I am getting this error every time
"Error 1 fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory d:\projects\imageexample\texturecpp\texturecpp\texture.cpp 5 TextureCPP"
Please help me to run my samples.
Thanks in advance
When you install the DirectX SDK, it should automatically set the paths for include directories and lib files in Visual Studio. If it didn't, you'll have to do that yourself. Open up VS and go to Tools->Options->Projects and Solutions->VC++ Directories. In the drop-down under "Show Directories For:" change to "Include files". Then add a new folder, and find the "include" folder in your SDK install directory. Then switch to "Library files", and add the "lib" folder in either the x86 or x64 directories (x86 for 32-bit, x64 for 64-bit).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement