Cant find any easy way to compile c++ projects under g++ in visual studio 2019. All I can find are tutorials for Visual Studio Code, not the full Visual Studio.
Asked
Active
Viewed 6,714 times
6
-
Did you look at: https://www.instructables.com/id/Compile-Using-GNU-GCC-from-Visual-Studio/ – Robert Andrzejuk Jan 26 '20 at 23:56
-
2Does this answer your question? [How to use GCC with Microsoft Visual Studio?](https://stackoverflow.com/questions/14768073/how-to-use-gcc-with-microsoft-visual-studio) – Robert Andrzejuk Jan 26 '20 at 23:57
-
Highlight **[How to use GCC with Microsoft Visual Studio?](https://stackoverflow.com/questions/14768073/how-to-use-gcc-with-microsoft-visual-studio)** – yu yang Jian Oct 21 '20 at 15:16
2 Answers
2
You can use a Linux emulator on your Windows machine like Cygwin or WSL to compile and run your programs (along with gaining access to other Linux terminal features).
You'll just have to set up the environment and install the packages you want (in your case, gcc-g++).
size_t yler
- 21
- 1
-
3This doesn't seem to answer the question (which is how to use g++ inside Visual Studio), unless I am misunderstanding what you are saying – M.M Jan 27 '20 at 02:00