'dxerr9.h': No such file or directory

17,136

Solution 1

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)".

Solution 2

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.

Share:
17,136

Related videos on Youtube

numerical25
Author by

numerical25

Updated on April 19, 2022

Comments

  • numerical25
    numerical25 about 2 years

    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.

  • numerical25
    numerical25 about 14 years
    I went to the includes folder and I was able to find a header file called Dxerr.h. could this be the samething. should I try that out instead
  • Maurice Gilden
    Maurice Gilden about 14 years
    Yes, it was renamed to DxErr.h in one of the latest DirectX SDKs. The functions are also missing the 9 at the end now so you might have to change that too.
  • Giulio Caccin
    Giulio Caccin over 6 years
    Can you please add some details that will help even if the link is down? Thank you!
  • mirh
    mirh over 6 years
    Are you talking about the first two links (whose only purpose is "being references") or the last one? In this case (putting aside I don't see msdn going down) it seems more an "incidental" information than anything.
  • Giulio Caccin
    Giulio Caccin over 6 years
    If you think this is super user question I think you can flag the question. If this was not intended as an answer but as a comment, you can add it as such. Thank you for your reply!
  • mirh
    mirh over 6 years
    You haven't answered my question, anyway this was meant to be an answer and it was meant to be on stack (since is "development related"). The SU link just served to introduce the (very clever tbh) notion of "tangential/side" information which imo applies globally.
  • Giulio Caccin
    Giulio Caccin over 6 years
    I don't want to reply. This answer is just an aggregation of links that leads to explanations of the original 10 years old accepted answer. I want to point out that you should add some information from the bunch of links you posted. Ganbatte!
  • mirh
    mirh over 6 years
    Then we are talking about the first two links then, good. In this case yes, my answer is nothing else than the 7yo replies with links.