# d3dx9.h more than just a missing file

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

## Recommended Posts

I am currently using DevC++ as my compiler. Initially, when compiling my project, I received "no such file or directory" errors. When I included the folders (Include and Lib) to my directories, I received countless redefinition errors. I am surely lost on this one.  I also receive the "no such file or directory" with the proper linking and/or #pragma statements.

##### Share on other sites
Without seeing those errors, it is just a wild guess, but did you include the Platform SDK (or whatever is is called now)?
And, do you have a good reason not to use visual studio express? It is far more superior to Dev-C++.

##### Share on other sites
Platform SDK- Is this.. something I can include? Sorry, but I need a bit of detail on that one.

And I don't have a legitimate reason aside from it makes me feel like home. It's like the good ol' days.

##### Share on other sites
I wholeheartedly recommend that you don't use Dev-C++.

##### Share on other sites
I may switch to express.

Anyway- it turns out that DevC++ has its own direct3d headers in its include folder. I should be able to handle the problem knowing this.

##### Share on other sites
Nope.. I lie.. I tried just removing the DevC++ includes, but that produces a slew of errors. I'm still lost with multiple files.

Ah- silly me. Micro$oft doesn't allow Dev to work with DirectX anymore. Visual Studio it is. #### Share this post ##### Link to post ##### Share on other sites Quote:  Original post by chamaeraAh- silly me. Microsoft doesn't allow Dev to work with DirectX anymore. Visual Studio it is. Fixed. Once you get used to Microsoft Visual Studio 2008 Express (free!), you'll wonder how you ever got away with using Dev-¢++. #### Share this post ##### Link to post ##### Share on other sites Quote:  Original post by chamaeraAh- silly me. Micro$oft doesn't allow Dev to work with DirectX anymore. Visual Studio it is.
No, DevC++ doesn't support the DirectX SDK. That's like blaming McDonalds because your burger can't be used as a semi-detached house.

##### Share on other sites
I'm using VC++ 2008 Express, but I get similiar error messages like chamaera with DevC++ when I want to include d3dx9.h.

PS: I have DirectX SDK August 2009

I guess. I wrote "$(DXSDK_DIR)\Include" in C/C++ General in additional includedirectory. Is there something else to do? #### Share this post ##### Link to post ##### Share on other sites Quote:  Original post by rumpfi88I guess. I wrote "$(DXSDK_DIR)\Include" in C/C++ General in additional includedirectory. Is there something else to do?
Did you also add it to the libraries tab? And if you go to start -> run and type "%DXSDK_DIR%\Include" (no quotes), does it open the DirectX SDK includes directory?

##### Share on other sites
Quote:
 Original post by Evil SteveDid you also add it to the libraries tab? And if you go to start -> run and type "%DXSDK_DIR%\Include" (no quotes), does it open the DirectX SDK includes directory?

1. VC++ don't let it run.

2. with library, did you mean in Linker/Input in additional references? I wrote there "d3d9.lib d3d9x.lib" (without quotes).

It seems that I have 2 different directories for Visual Studio 9.0 and DirectX SDK, but both are in C:\Program Files.

##### Share on other sites
Quote:
 Original post by rumpfi881. VC++ don't let it run.
I mean enter that in windows, not in visual studio (That'll tell you if the DXSDK_DIR environment variable is valid.

Quote:
 Original post by rumpfi882. with library, did you mean in Linker/Input in additional references? I wrote there "d3d9.lib d3d9x.lib" (without quotes).
Nope, there's a seperate section where you set up the paths for .lib files - look at the link I posted above.

##### Share on other sites
I used the link you mentioned, but I did it as well, but it doesn't work.

command shall I use to find out if DXSDK_DIR works. From a tutorial I used d3d9.h (not d3d9x.h) and it ran successfully.

##### Share on other sites
Quote:
 Original post by rumpfi88I used the link you mentioned, but I did it as well, but it doesn't work.
What exactly did you do, and define "doesn't work". Does it crash? If so, with what error? Does it not have any effect?

Quote:
 Original post by rumpfi88command shall I use to find out if DXSDK_DIR works. From a tutorial I used d3d9.h (not d3d9x.h) and it ran successfully.
I don't follow - is this a question? If you go to the Windows Start Menu, and go to "Run", and type "%DXSDK_DIR%" (without quotes), does it open the DirectX SDK directory in an explorer window?

What "ran successfully" with d3d9.h but not d3d9x.h? Do you mean your program compiled successfully? If so, that's a compile error and is totally different to the original problem.

• 10
• 14
• 11
• 10
• 11