
Now, install the default GCC toolchain and a few extra utilities with: 1 sudo apt install build-essential wget m4 flex bison Let’s make sure that you have an up to date system, start WSL and write: 1 sudo apt update 2 sudo apt upgrade If this is not the case, check my previous article.įirst, start WSL, use the Ubuntu 20.04 application console or write ubuntu2004 in a Command Prompt window. I assume that you have a working and updated WSL installation on your Windows 10 machine. If you want to try the new C++17 support use the -std=c++17 flag, example: 1 g++-10.1 -std=c++17 test.cpp -o test GCC 10.1 has C++14 support enabled by default. GCC 10.1 has complete support for C++11, C++14, C++17 and partial support for C++20.

The default version of GCC, at the time of this writing, is 9.3. In this article, I will show you how to compile from sources GCC 10.1 on WSL, Windows Subsystem for Linux with Ubuntu 20.04. Solarian Programmer My programming ramblings Home Archives Contact Privacy Building GCC 10 on Windows Subsystem for Linux Posted on by Paul
