• Advertisement

Archived

This topic is now archived and is closed to further replies.

Linking errors with DirectDrawCreate.

This topic is 5618 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am running Win XP home without service pack 1, using microsoft visual c++ 6.0, and direct x 5.0 (the one installed with the compiler). I get the following linking error: --------------------Configuration: game - Win32 Debug-------------------- Linking... gameMain.obj : error LNK2001: unresolved external symbol _DirectDrawCreate@12 Debug/game.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. game.exe - 2 error(s), 0 warning(s) I know this error is when the compiler cant find what you are looking for, but i know that direct draw is in the project becuase i dont get syntax errors when i define my LPDIRECTDRAW. He is the line thats messing it up so badly:
if (DirectDrawCreate(NULL,&lpdd,NULL)!=DD_OK)
   return(0);
 
im sure I just forgot to do something stupid, but ive even checked back in some of my books and the code looks like it should work. any help would be great. Thanks

Share this post


Link to post
Share on other sites
Advertisement
Make sure the DX libraries are in your project''s obj/lib list: Project->Settings->Link Tab->Object/library modules entry field. You need ddraw.lib there.

Share this post


Link to post
Share on other sites
Thanks Man, i knew i forgot something, i just havent done this for a few months so i knew i forgot to add a lib or something :D

Share this post


Link to post
Share on other sites

  • Advertisement