Thread: Installing Direct X

  1. #31
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    That would be the Direct3D helper import library. I think it's d3d.lib or perhaps d3d9.lib.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #32
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    Ok, I have added DXSDK\Lib to include directories and the include path under Include directories. Are there other things that I need to link? Or is it the fact that I have the up to date PSDK and DX 9b SDK? Do they not run together?

  3. #33
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    There's a .lib file for Direct3D, you need to add that to the libraries.

    No reason why the PSDK and DXSDK should conflict.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #34
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    How do I add it to the libraries. I would have though having DXSDK\Lib in library directories would work.

  5. #35
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    No, you need to add it to the Additional Libraries field in the "Input" subpoint of the "Linker" configuration.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  6. #36
    Registered User
    Join Date
    Nov 2005
    Posts
    545
    OMG, thank you so much, I just got Direct X Working

  7. #37
    Registered User
    Join Date
    Nov 2006
    Posts
    1
    I came upon this thread while searching for how to do this myself, so I'll post my solution.

    You can still use code::blocks and you don't have to do that retarded MinGW conversion.

    1) Download Visual Studio 2005 Express from microsoft
    2) Code::blocks will now detect the MSVC++ 2003 compiler
    3) Go to build->compile options. Select the MSVC++ 2003 compiler, set it as default, then go to the 'programs' tab. You need to select the correct directory. For me, it was 'C:\Program Files\Microsoft Visual Studio 8\VC'.
    4) This is not enough, as code::blocks is still unable to find the libs and includes. So add Microsoft Visual Studio 8\VC\lib and Microsoft Visual Studio 8\VC\include to the compiler directories.
    5) The compiler will still choke at this point because it can't find all its files. I solved this by moving all the dlls from Microsoft Visual Studio 8\VC\Common7\IDE\ to Microsoft Visual Studio 8\VC\bin.
    6) You now have to add msvcrt.lib (from Microsoft Visual Studio 8\VC\lib) and msvcrtd.lib to your project.
    7) It should now be able to actually compile.

    After you've done this, you can go through the normal motions of adding the DirectX SDK include and lib directories.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Direct Input shutting down improperly
    By Deo in forum Game Programming
    Replies: 3
    Last Post: 06-14-2005, 06:54 AM
  2. Direct x 8 include files
    By Zoalord in forum Game Programming
    Replies: 2
    Last Post: 03-17-2004, 04:07 PM
  3. Direct X
    By MicroFiend in forum C++ Programming
    Replies: 2
    Last Post: 03-21-2003, 02:34 PM
  4. Direct Music Illegal Static Member Call error
    By FwyWice in forum Game Programming
    Replies: 4
    Last Post: 11-30-2002, 05:14 PM
  5. Direct Music Trouble
    By FwyWice in forum Game Programming
    Replies: 5
    Last Post: 11-29-2002, 04:01 PM