Search code examples
c++windowsexecutionmingw-w64gcc9

How to have c++ 20 on windows?


I am working on windows 10 and currently have gcc8 installed on my system but the thing is #include <execution> cannot work with this version of gcc. So, I want to have gcc 9, but I have downloaded mingw 8 (the newest version) which probably have the latest gcc.

But this version of mingw does not have an installer. I copied on my driver but I am stuck the path I have to add to my system variables. since, there is no bin including lost of exes. Can anyone help me with that?


Solution

  • you can use msvc which supports c++20 features

    enter image description here

    https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_library_features