Jump to content
  • Advertisement
Sign in to follow this  
_Sigma

Linker error

This topic is 4641 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!