Jump to content
  • Advertisement
Sign in to follow this  
Raknar

Directx and vs05 question

This topic is 3493 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

Hello, I've programmed C++ for a couple of years now and have finally decided to get into DirectX. Bearing that, I purchased "Ultimate Game Programming with DirectX" by Allen Sherrod. However, I have run into a stump. When I compile my first program, (which I've checked line per line against the book example), I get an error that "Cannot open include file: 'd3d9.h': No such file or directory" I've gone into the properties and added (in the Linker/input/additional dependencies) d3d9.lib and d3dx9.lib... However, I still receive the error message after the rebuild. What am I missing here?

Share this post


Link to post
Share on other sites
Advertisement
You have to add the header files.
Add them in the properties too, they are in the include folder.

[Edit]
You have to add the header files in the compiler properties, not the linker.

Share this post


Link to post
Share on other sites
I'd actually done half of this by the time I read your post. I just missed adding in the line for the Library.

Thank you, this is a huge help.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!