2

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?

drescherjm
  • 10,365
  • 5
  • 44
  • 64
MA19
  • 510
  • 3
  • 15
  • 1
    There is gcc10.2 available in msys2 – drescherjm Feb 09 '21 at 15:47
  • 2
    C++20 compiler support is still under development, here is [list of supported features](https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_library_features) you can use to select compiler. At the end you have to check compiler documentation to see what it supports and what not yet. – Marek R Feb 09 '21 at 15:56

2 Answers2

5

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

Andreas H.
  • 5,557
  • 23
  • 32
2

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

Marek R
  • 32,568
  • 6
  • 55
  • 140
ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97