Jump to content
  • Advertisement
Sign in to follow this  
hamada2000

Cannot open include file: 'd3d9.h': No such file or directory

This topic is 4745 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 All, I just installed Directx9 sdk, and i'm trying to test it with vs2003, when I try to compile i got this error "Cannot open include file: 'd3d9.h': No such file or directory" I added the \lib and \include folders to VC++ directores also I added them to windows paths (lib and include) what i have to do to make it works? Thanx

Share this post


Link to post
Share on other sites
Advertisement
Try adding this in the main file

#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")

Share this post


Link to post
Share on other sites
(1) Are you sure you added the right directory? It should be:
DXSDK\Include

(2) Are you sure you are including it correctly? It should be:
#include <d3d9.h>

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!