Adding headers and libs to your C++ compiler

This is a discussion on Adding headers and libs to your C++ compiler within the C++ Programming forums, part of the General Programming Boards category; I just got the DirectX9 SDK for C++, and I installed it, but I don't have the slightest idea what ...

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    44

    Adding headers and libs to your C++ compiler

    I just got the DirectX9 SDK for C++, and I installed it, but I don't have the slightest idea what to do with it so that my compiler can use it. I tried adding all the files in it's include and lib directories to Dev-C++'s, but that didn't do the job.

    How am I supposed to do this?
    Check out all my dimensions:
    Height, width, and for a limited time only... Depth!
    -sb

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    ms libs are not compatible with mingw (devcpp) so you'll need to get some sort of package for it or build the mingw libs yourself.

    This site seems to be discussing where to get dx9 libs for mingw and how to install/configure them for use with devcpp.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I suppose you're supposed to have Microsoft Visual C++! Or, maybe it will work with Microsoft's free command-line compiler. (?) Although Microsoft has "System Requirements" listed on the DirectX SDK download page, they don't say exactly what compilers it works with.

  4. #4
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    I *think* the libs are compatible (at least the glu32 lib I once downloaded was - not sure about the DirectX ones).

    However, you can download the MinGW version of the DirectX 9 SDK from the DevC++ autoupdater (in the tools menu -> check for updates). It might be a little slow though... like 0.2k or so
    [code]

    your code here....

    [/code]

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Originally posted by Salem
    I thought dev-c++ had a lib conversion tool to convert MS libs into dev-c++ libs
    MinGW-Utils has 'reimp' which
    is a tool to convert Microsoft's new-style (short) import libraries to import libraries for win32 ports of GNU tools (mingw32,cygwin).
    If 'reimp' is what you mean then unfortunately current MinGW released with dev-cpp doesn't seem to come with it.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How do I include Headers and Libs with Borland 3.1?
    By fatpotatohead in forum C Programming
    Replies: 2
    Last Post: 09-23-2001, 03:27 PM

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