Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'dxerr9.h': No such file or directory

I am trying to compile a program I took off a cd from a book that uses directx to render 3d objects. when i press compile I get the following error

C1083: Cannot open include file: 'dxerr9.h': No such file or directory

I am using VC++ 2008 Express Edition and i am running off of Vista. I went to the following folder

[edit]

C:\Program Files (x86)\Microsoft DirectX SDK (February 2010)\Include

I was able to find dxerr.h in the folder and the path is also being included in the VC++ Directories tab in the options window. dont know whats going on.

like image 993
numerical25 Avatar asked Apr 15 '10 23:04

numerical25


2 Answers

It seems your program was written using older version of DirectX SDK. The 'dxerr9.h' is present at least in "Microsoft DirectX 9.0 SDK (December 2004)", but is absent at least in "Microsoft DirectX SDK (August 2009)".

like image 150
VitalyVal Avatar answered Oct 17 '22 21:10

VitalyVal


I think VitalyVal was right. about the following:

It seems your program was written using an older version of DirectX SDK. The 'dxerr9.h' is present at least in "Microsoft DirectX 9.0 SDK (December 2004)", but is absent at least in "Microsoft DirectX SDK (August 2009)".

I think the files now go by dxerr.h. I removed the 9 to the header and lib files and it worked.

like image 32
numerical25 Avatar answered Oct 17 '22 22:10

numerical25