简体   繁体   中英

Compiler to C++20 on Windows

I need a compiler that supports c++20, like GCC 10.1 (used on linux), but to use it in my Windows 10.

I saw posts that recommend Mingw-w64, but does it supports c++20?

In the meantime GCC 10 has been released and MinGW builds are available.

You can download a standalone build of MinGW-w64 with GCC 10 for Windows 32-bit and 64-bit from http://winlibs.com/

You can install Clang and MSVC/Visual Studio on Windows directly. For gcc you need MinGw /Msys2. I use wsl. With wsl you can check out gcc trunk and build it yourself.

C++20 is not completely supported but you can use most of it like coroutines, concepts...

Other compilers usually lack behind those.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM