direct x...

This is a discussion on direct x... within the Game Programming forums, part of the General Programming Boards category; I downloaded the DirectX 8.1 SDK and installed it, but when I tried code from sunlightd.com I get these errors: ...

  1. #1
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972

    direct x...

    I downloaded the DirectX 8.1 SDK and installed it, but when I tried code from sunlightd.com I get these errors:


    51 c:/dev-c_~1/include/objbase.h
    from C:/DEV-C_~1/INCLUDE/ddraw.h:36,
    7 drdw.cpp
    C:/DEV-C_~1/INCLUDE/unknwn.h:23: `com_interface' only supported with -fvtable-thunks
    23 c:/dev-c_~1/include/unknwn.h
    warning: `com_interface' attribute directive ignored
    and it goes on and on about "com_interface only supported with...attribute directive ignored..." Maybe I'm not ready for game programming after all...lol can't even get it to work
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  2. #2
    Programming is fun, mkay?
    Join Date
    Oct 2001
    Posts
    490

    Lightbulb Solution is simple ...

    Hey, JaWiB. I used to use Dev-C++ 4.01, and I had the same problem. I moved on to MS Visual C++ 6.0 =). Anyhow, to fix this you need to go to your project settings. Click the Project menu, click Project Options. Under Extra Compiler Options (only for this project): type: -fvtable-thunks That should fix your problem. =)
    Website(s): http://www16.brinkster.com/trifaze/

    E-mail: trifaze_mattu@lycos.com

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

  3. #3
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Thank you!!! Lol, thought I'd never get an answer to that one Anyways all those errors are gone, but I need to link some files...

    c:\dev-c++\myproj\directx\drdw.o: In function `InitDirectDraw(void)':
    //c/dev-c++/myproj/directx/drdw.cpp:16: undefined reference to `DirectDrawCreateEx@16'

    I'll probably figure it out on my own though...

    Thanks again

    EDIT: figured it out...
    Last edited by JaWiB; 06-08-2003 at 03:59 PM.
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

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, 07: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

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