Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 666
MA19 Avatar asked Nov 28 '25 03:11

MA19


1 Answers

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).

like image 181
Andreas H. Avatar answered Nov 30 '25 18:11

Andreas H.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!