Thread: Direct X including lib problem.

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    3

    Exclamation Direct X including lib problem.

    Im trying to include the main lib #include <d3d9.h> into my program(using sprite drawing). When I try to compile I get the following error:
    ------ Build started: Project: Gameengine, Configuration: Debug Win32 ------
    Compiling...
    winmain.cpp
    winmain.cpp(3) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
    game.cpp
    c:\Documents and Settings\NAME\My Documents\C++ programming\Projects\Game Engine Framework\Gameengine\Gameengine\game.h(4) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
    dxgraphics.cpp
    dxgraphics.cpp(3) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory
    Generating Code...
    Build log was saved at "file://c:\Documents and Settings\NAME\My Documents\C++ programming\Projects\Game Engine Framework\Gameengine\Gameengine\Debug\BuildLog.htm "
    Gameengine - 3 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Ive linked to the lib directory, and everything. Somone that knows how to use Visual C++ 2005 Express Edition Beta please help!

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    You need to change the include paths to search the include directory where you installed the sdk. Also if you have not, you will need to do the same thing for the libraries.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 11-07-2005, 11:34 PM
  2. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  3. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM