d3dx10.h: No such file or directory

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

d3dx10.h: No such file or directory

Post by MadPumpkin »

Alright so I'm having a not so friendly error popping out of Satan's ass, and can't figure out how in hell to fix it...
I have found this file, it DOES exist so I have no idea what's going on

Windows 7
DirectX 10
Visual C++ 2010

Code: Select all

#include <windows.h>
#include <windowsx.h>
#include <d3d10.h>
#include <d3dx10.h>

Code: Select all

1>------ Build started: Project: The Owl, Configuration: Debug Win32 ------
1>  The Owl.cpp
1>c:\program files (x86)\mad pumpkin entertainment\the owl\the owl\the owl.cpp(4): fatal error C1083: Cannot open include file: 'd3dx10.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: d3dx10.h: No such file or directory

Post by Ginto8 »

well if you found the file you need to tell the IDE where that file is. It doesn't look EVERYWHERE, so you need to tell it where to go and look.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: d3dx10.h: No such file or directory

Post by RyanPridgeon »

IIRC I had this same problem. I had to add the include folder for DirectX to my project's search directories manually, even though it included some DirectX headers fine.
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: d3dx10.h: No such file or directory

Post by MadPumpkin »

Alright thanks, I thought that may be a problem. Although I was confused that other headers were working... Uhm... I'm not going to lie to you guys, I don't know how to do this in VC++... Anyone?
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: d3dx10.h: No such file or directory

Post by RyanPridgeon »

MadPumpkin wrote:Alright thanks, I thought that may be a problem. Although I was confused that other headers were working... Uhm... I'm not going to lie to you guys, I don't know how to do this in VC++... Anyone?
Well I'm pretty new to VS, but this is pretty straightforward and I think I'm doing it right as it's worked for me so far.

Alrighty, I'm assuming you downloaded the DirectX SDK, so you should have a Microsoft DirectX SDK folder (or something similar, I forget) in your Program Files. Inside this is an include directory somewhere.

Now go on VS and open up your project. Click Project -> (Project Name) Properties, and on the box on the left, expand "Configuration Properties" -> C/C++, and click General. At the top now on the right is an Additional Include Directories parameter. Click the little browse icon on this and add the Include directory in your DirectX SDK.

Make sure you do this for all configurations of your program (Release, Debug etc) by checking the dropdown box in the top left of the properties window.

Now when you compile it will hopefully find yer DirectX headers fine.
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: d3dx10.h: No such file or directory

Post by MadPumpkin »

RyanPridgeon wrote:
MadPumpkin wrote:Alright thanks, I thought that may be a problem. Although I was confused that other headers were working... Uhm... I'm not going to lie to you guys, I don't know how to do this in VC++... Anyone?
Well I'm pretty new to VS, but this is pretty straightforward and I think I'm doing it right as it's worked for me so far.

Alrighty, I'm assuming you downloaded the DirectX SDK, so you should have a Microsoft DirectX SDK folder (or something similar, I forget) in your Program Files. Inside this is an include directory somewhere.

Now go on VS and open up your project. Click Project -> (Project Name) Properties, and on the box on the left, expand "Configuration Properties" -> C/C++, and click General. At the top now on the right is an Additional Include Directories parameter. Click the little browse icon on this and add the Include directory in your DirectX SDK.

Make sure you do this for all configurations of your program (Release, Debug etc) by checking the dropdown box in the top left of the properties window.

Now when you compile it will hopefully find yer DirectX headers fine.
Thank you very much!! Fixed THAT error but now I'm encountering another.

Code: Select all

1>------ Build started: Project: The Owl, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'd3dx10.lib'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I think it has something to do with:

Code: Select all

#pragma comment (lib, "d3dx10.lib")
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
Live-Dimension
Chaos Rift Junior
Chaos Rift Junior
Posts: 345
Joined: Tue Jan 12, 2010 7:23 pm
Favorite Gaming Platforms: PC - Windows 7
Programming Language of Choice: c++;haxe
Contact:

Re: d3dx10.h: No such file or directory

Post by Live-Dimension »

You've found the include files and told VS where to find them.
Now you need to find the lib/library/static library files and tell VS where to find them.
Image
User avatar
MadPumpkin
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 484
Joined: Fri Feb 13, 2009 4:48 pm
Current Project: Octopia
Favorite Gaming Platforms: PS1-3, Genesis, Dreamcast, SNES, PC
Programming Language of Choice: C/++,Java,Py,LUA,XML
Location: C:\\United States of America\Utah\West Valley City\Neighborhood\House\Computer Desk

Re: d3dx10.h: No such file or directory

Post by MadPumpkin »

Live-Dimension wrote:You've found the include files and told VS where to find them.
Now you need to find the lib/library/static library files and tell VS where to find them.
Well I figured. I tried, but am not familiar with VSC++ in order to know how to accomplish this :/.
While Jesus equipped with angels, the Devil's equipped with cops
For God so loved the world that he blessed the thugs with rock
Image
Image
Image
Post Reply