How to have c++ 20 on windows?

8.9k views Asked by At

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?

2

There are 2 answers

1
ΦXocę 웃 Пepeúpa ツ On BEST ANSWER
2
Andreas H. On

I would suggest you to install MSYS2. It contains mingw and comes with a gcc 10.2.

Msys further comes with the package manager pacman, so there is no need to manually download and install packages.

Also when there is an updated gcc, it will soon appear in the repository and can be installed with pacman update (see the link for details).