Page 1 of 1

d3dx10.h: No such file or directory

Posted: Sun Jun 06, 2010 10:10 pm
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 ==========

Re: d3dx10.h: No such file or directory

Posted: Sun Jun 06, 2010 11:16 pm
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.

Re: d3dx10.h: No such file or directory

Posted: Mon Jun 07, 2010 6:29 am
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.

Re: d3dx10.h: No such file or directory

Posted: Mon Jun 07, 2010 11:36 pm
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?

Re: d3dx10.h: No such file or directory

Posted: Wed Jun 09, 2010 6:07 am
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.

Re: d3dx10.h: No such file or directory

Posted: Sat Jun 12, 2010 3:41 pm
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")

Re: d3dx10.h: No such file or directory

Posted: Sun Jun 13, 2010 8:02 pm
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.

Re: d3dx10.h: No such file or directory

Posted: Sat Jun 19, 2010 10:24 pm
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 :/.