DEV Community

Cover image for Dealing with Compiler and Linker Errors
Saloni Goyal
Saloni Goyal

Posted on • Edited on

1

Dealing with Compiler and Linker Errors

Compiler Errors

  • forgetting to declare the function before calling it
  • not including the header file
  • not declaring the function in the header file

Linker Errors

  • not implementing the function
  • the .cpp file with the function is not getting linked with your main file

These are some of the possible errors that can happen when we start working with more moving parts. As a beginner it is good to actually try and do them deliberately and see what errors we are getting, so the next time you see that error in your code, you'd have an idea of what went wrong.

Please leave out comments with anything you don't understand or would like for me to improve upon.

Thanks for reading!

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay