Thread: DX SDK Problem with includes!

  1. #1
    Programming is fun, mkay?
    Join Date
    Oct 2001

    Unhappy DX SDK Problem with includes!

    I downloaded the needed files from NeHe's website for DX(DirectInput, etc.). When I do:

    #include <dinput.h>

    // All the others

    it won't compile and gives me this:

    49 c:\dev-c_~1\include\objbase.h
    from C:\DEV-C_~1\INCLUDE\dinput.h:17,
    37 c:\dev-c_~1\include\unknwn.h
    `com_interface' only supported with -fvtable-thunks

    What is wrong?


    C++ Environment: MSVC++ 6.0; Dev-C++ 4.0/4.1
    DirectX Version: 9.0b
    DX SDK: DirectX 8.1 SDK

  2. #2
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Try using the DirectX package from Bloodshed's links. These an intruction README file that come with it. It works.

    Dev-C++ doesn't do COM very well (I think because of the MinGW compiler). Otherwise make sure you use the -fvtable and -thunks compiler commands (maybe you forgot to add them to the compiler options).
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  3. #3
    I am the worst best coder Quantrizi's Avatar
    Join Date
    Mar 2002
    1. The Direct X won't work with Dev-C++ v5.0 beta.
    2. It works fine with me with 4.01

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  2. Sin() and Cos() Problem
    By Grantyt3 in forum C++ Programming
    Replies: 4
    Last Post: 09-16-2005, 05:35 PM
  3. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  4. Win32 API or Win32 SDK?
    By jverkoey in forum A Brief History of
    Replies: 2
    Last Post: 07-20-2005, 03:26 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM