• Advertisement
Sign in to follow this  

Linker error

This topic is 4463 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

Alright, what tends to cause linker errors? I get this
cDirectDraw.obj : error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "public: void __thiscall CDirectDraw::Load(void)" (?Load@CDirectDraw@@QAEXXZ)
Where should I look to fix this bloody error? Cheers

Share this post


Link to post
Share on other sites
Advertisement
hm...afaik I am...I went to project properties, and added the libs to the search path...ah shit, you need to add the libs to the project too eh? damnit.

Share this post


Link to post
Share on other sites
if you are using visual studio you could use #pragma comment(lib, "ddraw.lib") i think that is correct for direct draw library but check your lib directory.

Share this post


Link to post
Share on other sites
Yup, that was that. damnit, i'm dumb. Appreciate the help there guys

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement