Advertisement Jump to content
Sign in to follow this  
_Sigma

Linker error

This topic is 4822 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
Seems like you are not linking in the library that is responsible for that method.

ace

Share this post


Link to post
Share on other sites
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!