Direct3DCreate8 non existent?

This is a discussion on Direct3DCreate8 non existent? within the Game Programming forums, part of the General Programming Boards category; ok, I have this problem, i have included the d3d8.h include, and the d3d8.lib file added to my project in ...

  1. #1
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790

    Direct3DCreate8 non existent?

    ok, I have this problem, i have included the d3d8.h include, and the d3d8.lib file added to my project in dev C++. However, when I am all said and done with the initiation code and compile it, it finishes compiling then says,
    Code:
    [Linker error] undefined reference to `Direct3DCreate8@4'
    what does this mean, and how can i solve it? it gives me this same type of message when one of my functions is undefined.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    That should be all that is needed. You can try linking to dxguid.lib though. Are you sure you didn't add the libraries for one configuration setting and then use a different one to compile?
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    jesus, downloaded the dx9 sdk, and its doing the same thing with d3d9.h and d3d9.lib, and even with dxguid.lib it doesnt work.

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Well maybe it's something Dev-CPP specific. The above mentioned methods work on MSVC.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  5. #5
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314

    Re: Direct3DCreate8 non existent?

    Originally posted by EvBladeRunnervE
    ok, I have this problem, i have included the d3d8.h include, and the d3d8.lib file added to my project in dev C++. However, when I am all said and done with the initiation code and compile it, it finishes compiling then says,
    Code:
    [Linker error] undefined reference to `Direct3DCreate8@4'
    what does this mean, and how can i solve it? it gives me this same type of message when one of my functions is undefined.
    Did you use the DirectX DevPack from the autoupdater?

  6. #6
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    no, i just downloaded the SDK from MS's site

  7. #7
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    Originally posted by EvBladeRunnervE
    no, i just downloaded the SDK from MS's site
    Well in that case use the modified SDK from the DevC++ autoupdater.

  8. #8
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    ok, I downloaded the dev-C++ SDK and it compiles, but when i run it, it doesnt load the window, even when the code is a direct copy and paste from Drunken Hyenas 1st tutorial. It also hassles me about the D3D9X.h, saying there are errors in the header file D3DMesh.h(sp?).

    EDIT: im about ready to say screw DX, even though I wanted so much to learn and love it, this is giving me more hassle than I ever had with Opengl.

  9. #9
    *******argv[] - hu? darksaidin's Avatar
    Join Date
    Jul 2003
    Posts
    314
    Well, as a few board members could confirm, I'm not a DirectX fan either - BUT to use OpenGL because you can't get DirectX running is .... well... you gave up!

    You should have a look at the DevC++ site on SourceForge. They have a pretty active board with some 40k posts in it. I mean, I don't know if there are any helpful posts, but I'd give it a try if you really want to use DirectX.

  10. #10
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    hey i didnt say i was going to, i said I am about to.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2007, 05:17 AM

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