'I can't build c++ files anymore

I think i deleted some files i shouldn't and now when i try to build files in Sublime Text it says "g++ is missing" and in VS Code it says "#include errors detected. Please update your includePath..." and "cannot open source file 'iostream'...". How can i fix this?



Solution 1:[1]

If you broke your installation, you need to reinstall what you broke.

If you just need a GCC toolchain and don't want the hastle of installing, you could get a standalone build from https://winlibs.com/ and extract it to a folder.

If you do this to a separate folder you can leave your existing installation untouched, but you will need to point the VS Code settings to it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brecht Sanders