visual studio 2010 - Cannot open include file "d3dx9.h" -


edit: of course, after working on hour posting here, found stupid mistake...

i'm getting compiler errors when trying #include <d3dx9.h> in project. i'm receiving "fatal error c1083: cannot open include file: 'd3dx9.h': no such file or directory".

  • i have directx sdk installed (i tried reinstalling no avail).
  • in project properties:
    • vc++ directories set "$(dxsdk_dir)include;$(includepath)" , "$(dxsdk_dir)lib\x86;$(librarypath)" include , library directories respectively configurations—and environment variable %dxsdk_dir% points c:\program files (x86)\microsoft directx sdk (june 2010)\ expected.
    • c/c++ > general settings has $(dxsdk_dir)include listed in additional include directories
    • linker > input > additional dependencies has d3dx9d.lib included debug , d3dx9.lib included release configuration.
  • i am able compile , run tutorial projects directx sample browser.
  • visual studio's intellisense/autocomplete find d3dx9.h , suggest type , function names within file (and not included through else i'm #includeing) seems intellisense can find it.

any suggestions on i'm forgetting or else try?

thanks

you forgot 1 thing:

  1. go vc++ directories -> library directories
  2. add $(dxsdk_dir)lib\x86
  3. apply.

done. hope helps


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -