• Advertisement
Sign in to follow this  

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.

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

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. [Edit] I also receive the "no such file or directory" with the proper linking and/or #pragma statements.

Share this post


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


Link to post
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 this post


Link to post
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 this post


Link to post
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.

Share this post


Link to post
Share on other sites
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 chamaera
Ah- 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 chamaera
Ah- 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 this post


Link to post
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

Share this post


Link to post
Share on other sites
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 rumpfi88
I 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 this post


Link to post
Share on other sites
Quote:
Original post by Evil Steve
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?


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 this post


Link to post
Share on other sites
Quote:
Original post by rumpfi88
1. 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 rumpfi88
2. 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 this post


Link to post
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 this post


Link to post
Share on other sites
Quote:
Original post by rumpfi88
I 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 rumpfi88
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.
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.

Share this post


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

  • Advertisement