• Advertisement
Sign in to follow this  

fatal error C1083: Cannot open include file: 'd3dx9.h':

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement