Jump to content
  • Advertisement
Sign in to follow this  
Farraj

Linking errors. How to....

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

OK, linking errors are one of those things that are still a mistury to me. I can handle compiler errors. I can always tarck back the problem and fix it. But when it comes to link error, I have no idea what's going on. How can you fix link errors? Where do you even start? How can you tell what you did wrong although last time there was no link errors? Cheers

Share this post


Link to post
Share on other sites
Advertisement
Posting the errors would give us a clue as to how to help you.

Linking errors generally fall under stuff you forgot to do. For example, if you declare and use a function without defining it, you will get a linking error. If you use a library function without telling the linker where to find the library, you will get a linker error.

Share this post


Link to post
Share on other sites
If you're using some variety of Visual C++, looking up the error code on MSDN is always a good place to start. Most of the common linker and compiler errors tell you in rather plain language what they mean, and even list common scenarios that cause them.

For linker errors in general, usually the problem is one of three things:

-Not importing a static library
-Not including a source file for compilation
-Linking to two versions of the CRT

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!