DirectX question

This is a discussion on DirectX question within the C++ Programming forums, part of the General Programming Boards category; Linking... main.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16 main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7 Debug/DirectX.exe : fatal ...

  1. #1
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753

    DirectX question

    Linking...
    main.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
    main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
    Debug/DirectX.exe : fatal error LNK1120: 2 unresolved externals
    Error executing link.exe.

    DirectX.exe - 3 error(s), 0 warning(s)

    I get those errors when trying to compile the following cpp file, and I don't know what's wrong. I installed the MASSIVE SDK (166 MB), I just don't know.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Jun 2002
    Posts
    151
    Have you tried linking to the dx libs?

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    23
    yep, you probably didnt link to ddraw.lib.
    to link to that file, (maybe there is a simpler way, im rather new to this) just right click on "Header Files" and choose "Add Files To Folder", then go to where you installed the directx sdk, in the folder "lib" there is a file called "ddraw.lib", choose it and press ok.

    if you cant see any files there, under "File Type" choose "Library File (.lib)".

    that should do it.
    did it?
    let us eat and drink

  4. #4
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    i finally got it. i had to go to project > settings > link tab and i typed in EVERY lib from DX. man thats a lot.

  5. #5
    Registered User
    Join Date
    Sep 2002
    Posts
    23
    it shouldnt be that way.
    anyway my way worked for me..
    let us eat and drink

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Total newb directx invisable geometry question
    By -pete- in forum Game Programming
    Replies: 5
    Last Post: 08-13-2006, 02:45 PM
  2. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 04:44 PM
  3. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  4. DirectX question, please read!
    By Crossbow in forum Game Programming
    Replies: 2
    Last Post: 12-12-2001, 07:18 PM
  5. Simple DirectX question
    By Crossbow in forum Windows Programming
    Replies: 1
    Last Post: 12-12-2001, 12:44 AM

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