Tricks of the Windows Game Programming Gurus
I've got a prob and was hoping one of ya'll would help me out
I created a new project, included the DirectX libs, includes, and headers, and I tried to compile the third program in Chapter 6 ... it didn't work. Here's the error it gave me:
demo6_3.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4
Debug/directx.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Do any of ya know how to fix this problem?
[edited by - zer0wolf on April 30, 2003 1:42:26 AM]
In your include and lib directory settings, make sure that the DirectX SDK directories are at the top. VC++ comes with DirectX 3 headers and libs, so it''ll find those first and try to use them unless you put the SDK directories at the top of the list.
Star2-
no... I just lifted the code right off of the CD that came with the book, but I don't see that anywhere in the code.
[edited by - zer0wolf on April 30, 2003 2:38:55 AM]
no... I just lifted the code right off of the CD that came with the book, but I don't see that anywhere in the code.
[edited by - zer0wolf on April 30, 2003 2:38:55 AM]
flukus-
the only DirectX lib it used is ddraw.lib, and I did add that one, at the beginning of the list
the only DirectX lib it used is ddraw.lib, and I did add that one, at the beginning of the list
Did u try to add it and see if it works?
EDIT: talking about the define (#define INITGUID)
[edited by - Star2 on April 30, 2003 2:43:29 AM]
EDIT: talking about the define (#define INITGUID)
[edited by - Star2 on April 30, 2003 2:43:29 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement