Why can’t I run C++ in VS Code after installing MinGW/MSYS?

0
5
Asked By CuriousCoder92 On

I've been struggling for the last few days trying to get my C++ programs to run in Visual Studio Code. I've installed MinGW and set up MSYS, and I've double-checked the PATH variables, but nothing works. I even tried uninstalling and reinstalling MinGW, but I'm still stuck. I'm really frustrated and don't know what else to try. Any advice would be greatly appreciated!

3 Answers

Answered By TechNerd21 On

Have you attempted to run the C++ compiler from the command prompt? Doing that will help you determine if the compiler and linker are properly installed and if your PATH environment variable is set correctly.

Answered By CodeMaster007 On

When you mention that you can't run C++, are you talking about debugging the code step by step?

Answered By DevGuru88 On

Here's a potential fix:
1. First, uninstall MSYS, MinGW, and VS Code.
2. Then, install Visual Studio Community Edition instead.
This might set you up for success. Let me know how it goes!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.