Jump to content
  • Advertisement
Sign in to follow this  
striker87

Need help with DirectX error

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

I'm following the Beginning Directx 9 book that I had gotten from a class I had taken as need to freshen up on DirectX and am getting a compiling error as it can't find the header file d3dx9tex.h I tried look online and couldn't find any solutions to fix the problem and tried adding the d3dx9.lib but that doesn't work as I also can't add the d3dx9.h header file. Not sure as to why it's not letting me when I added the library. If anyone knows a solution that might be able to fix this I would appreciate it so that I can continue with the book.

Share this post


Link to post
Share on other sites
Advertisement
Somewhere in your IDE (Visual Studio?), you should be able to set project properties. Among those properties is "Include Directory." That's the location where your header files are located.

The following code tells the IDE what to include, but you need to tell it where the files are.


#include "d3dx9.h"



Share this post


Link to post
Share on other sites
Thanks I found out what was causing the problem. I forgot to add the SDK Include and Lib folders to the C++ directories.

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!