I just got a new laptop and installed all the necessary software for programming. However, whenever I write my C++ code and hit 'Run', it doesn't execute as expected. Instead, I'm getting an error message. Can someone help me understand what might be causing this issue and how to resolve it?
2 Answers
From what I can see in your screenshot, the error points to a failure during the linking stage (that's what 'ld' refers to). It usually means that your code is trying to link against some libraries that are missing. Double-check your compiler settings or project properties to make sure all required libraries are included in your linker settings.
It sounds like your PATH might not be set up correctly. Make sure that your development environment is properly configured to find the necessary tools. If you could share the error message or a screenshot, it would help in diagnosing the problem better. You can upload it to imgur if that's easier!
Here's the screenshot: [https://ibb.co/xqVhGFLw](https://ibb.co/xqVhGFLw)

Thanks! But how do I fix the linking issue?