setting up directx with codeblocks?

This is a discussion on setting up directx with codeblocks? within the Game Programming forums, part of the General Programming Boards category; Okay, so I've decided to try some DirectX. I downloaded and installed the SDK, so I have all of the ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    57

    setting up directx with codeblocks?

    Okay, so I've decided to try some DirectX.

    I downloaded and installed the SDK, so I have all of the header/lib files.
    I put all of the header files in a "include/DX" directory where my MinGW installation is located. I then added the "include/DX" part of the installation to the compiler options or w/e for the header files.

    But, I read something about the .lib DX files that you have to convert them to .a using reimp. Is that true?
    And if I don't, can I just put all of the DX .lib files into my "lib" part of the MinGW installation and then add them under the linker parameters? (If that's what it is called.)

  2. #2
    Not stupid, just stupider yaya's Avatar
    Join Date
    May 2007
    Location
    Earthland
    Posts
    204
    Look for some tutorials that show you how to install it on Dev-C++. Code::Blocks and Dev-C++ are like identical twins so the steps to installing anything on them should also be near-identical (or so I think).

  3. #3
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    If you're working with DX, you'll save yourself a lot of trouble by just using Visual C++ Express.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  4. #4
    Darkness Prevails Dark_Phoenix's Avatar
    Join Date
    Oct 2006
    Location
    Houston, Texas
    Posts
    174
    But, I read something about the .lib DX files that you have to convert them to .a using reimp. Is that true?
    No. I have been using DX with C::B and MSVC Toolkit 2003 with no problems and is much easier then using DX with Dev-C++. You can use DX as is, just include the correct paths in your compiler settings.
    Using Code::Blocks and Windows XP

    In every hero, there COULD be a villain!

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    The thing about Code::Blocks is that it can quite a few different compilers. If you use CB with the MS compiler, then setting up DX should be simple. If you use it with MinGW GCC, you'll probably have to convert the import libraries.
    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. #6
    Registered User
    Join Date
    Nov 2007
    Posts
    57
    I was using MinGW GCC compiler with Code::Blocks.
    I think I may have got it set up now, I just need some code with a directx header in it. :P
    Anyone have any?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Codeblocks crashes linux?
    By Shakti in forum Tech Board
    Replies: 1
    Last Post: 03-25-2009, 08:26 AM
  2. Isometric Tile Engine using DirectX
    By Wraithan in forum Game Programming
    Replies: 3
    Last Post: 07-17-2006, 01:16 PM
  3. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  4. DirectX - Starting Guide?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-25-2004, 12:49 AM
  5. Setting up directx 8.0 sdk with Borland command-line compiler
    By ganonl in forum Windows Programming
    Replies: 0
    Last Post: 08-06-2003, 06:16 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21