#Help with Visual studio
30 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@flat jacinth
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
We need more information to help you, namely how you're compiling the code
Send your tasks.json
Use g++.exe instead of gcc.exe
To run the code?
Setup a launch.json file
What now?
If you replaced gcc.exe with g++.exe in your tasks.json as suggested, your problem should be fixed now
Here's a full tutorial on setting up VSC, by the way: https://github.com/HolyBlackCat/cpp-tutorials/blob/master/tooling/README.md
How do I do that
You have this file. Edit it to replace gcc.exe with g++.exe (in two places). Press "save"
Yeah, keep this. That's why I said to replace gcc.exe -> g++.exe, and not just gcc -> g++
(To be honest, you're better off removing this "$gcc" completely, it does more harm than good, but it doesn't matter now)
@flat jacinth Has your question been resolved? If so, type !solved :)
FYI what "$gcc does is that it creates the red squiggles on errors when you press "compile", and them makes them linger until you compile again
Which is really useless, because VSC already shows red squiggles without it, and updates them in real time
Interesting