There is no single official C or C++ compiler. There are language standards for C and C++ (and their standard libraries) and there are multiple compilers and library implementations out there. You can probably find a lot of C compilers, but for modern C++ there are basically three choices: gcc (GNU Compiler) — the short version is this is ‘the Linux compiler’, but you can use it on other platforms as well. This is open source. clang — an alternate C++ compiler that tries to be compatible with gcc. This is the default compiler for Macs running OSX. Also open source. MSVC — Microsoft’s C/C++ compiler, Windows only for the most part. Normally used as part of the Visual Studio IDE. Closed source. If you want to write stuff for Windows only, usually the community edition Visual Studio (NOT VISUAL STUDIO CODE) is going to be the easiest thing to install and use. This comes with MSVC (Microsoft’s C/C++ compiler) and an integrated IDE that is all set up to use. I think that in newer versions of VS you can also optionally install a Windows version of clang directly and use that if you prefer it over MSVC. Other options if you’re on Windows: install “mingw”, which is a build of gcc for Windows. I’ve had the most luck using MSYS2 and then installing the packages for minGW-64 through that. This gives you a POSIX compliant programming environment that works on Windows, and also a console with a version of the *NIX bash shell. This is commonly used for building a Windows version of programs designed for Linux. install the Windows Subsystem for Linux (WSL), which lets you run a VM of a Linux system inside Windows. Then you can download the Linux version of gcc or clang inside there. This is probably the best way to do Linux program development on a Windows machine. If you’re used to working in a Linux/UNIX environment this will let you have everything you’re used to, but bridging stuff between the Linux and Windows systems can be a little annoying. Answer from TheSkiGeek on reddit.com
🌐
Visual Studio
visualstudio.microsoft.com › vs › features › cplusplus
Visual Studio C/C++ IDE and Compiler for Windows
4 days ago - Download free Visual Studio IDE to build cross-platform apps for Linux, iOS, Android, IoT, and Windows devices using latest, standards-compliant C and C++.
🌐
Google Play
play.google.com › store › apps › details
C Compiler - Apps on Google Play
Downloads · Everyone · info · Install · Share · Add to wishlist · arrow_forward · Welcome to the ultimate C Compiler app, designed to provide an intuitive and powerful coding experience. The app is equipped with features that cater to both beginners and seasoned developers, ensuring a seamless coding journey.
Rating: 2 ​ - ​ 173 votes
Discussions

What is the proper way to get a compiler for c/c++
There is no single official C or C++ compiler. There are language standards for C and C++ (and their standard libraries) and there are multiple compilers and library implementations out there. You can probably find a lot of C compilers, but for modern C++ there are basically three choices: gcc (GNU Compiler) — the short version is this is ‘the Linux compiler’, but you can use it on other platforms as well. This is open source. clang — an alternate C++ compiler that tries to be compatible with gcc. This is the default compiler for Macs running OSX. Also open source. MSVC — Microsoft’s C/C++ compiler, Windows only for the most part. Normally used as part of the Visual Studio IDE. Closed source. If you want to write stuff for Windows only, usually the community edition Visual Studio (NOT VISUAL STUDIO CODE) is going to be the easiest thing to install and use. This comes with MSVC (Microsoft’s C/C++ compiler) and an integrated IDE that is all set up to use. I think that in newer versions of VS you can also optionally install a Windows version of clang directly and use that if you prefer it over MSVC. Other options if you’re on Windows: install “mingw”, which is a build of gcc for Windows. I’ve had the most luck using MSYS2 and then installing the packages for minGW-64 through that. This gives you a POSIX compliant programming environment that works on Windows, and also a console with a version of the *NIX bash shell. This is commonly used for building a Windows version of programs designed for Linux. install the Windows Subsystem for Linux (WSL), which lets you run a VM of a Linux system inside Windows. Then you can download the Linux version of gcc or clang inside there. This is probably the best way to do Linux program development on a Windows machine. If you’re used to working in a Linux/UNIX environment this will let you have everything you’re used to, but bridging stuff between the Linux and Windows systems can be a little annoying. More on reddit.com
🌐 r/cpp_questions
36
19
October 20, 2023
What C compiler do you recommend for Windows?

mingw works flawlessly

More on reddit.com
🌐 r/C_Programming
42
13
March 18, 2016
Easiest way to set up C compiler on Windows 10 (if you use Visual Studio Code)?
The simplest way is to download and install "Build Tools for Visual Studio 2022", which includes the compiler (MSVC) and its command prompt. After that you open the compiler's command prompt and compile your code using the command: cl filename.c This will generate the file: filename.exe You can run it by simply executing: filename That's it! More on reddit.com
🌐 r/C_Programming
28
24
March 8, 2023
Installing c compiler on windows 10.
There's online C compilers if you just want to have a play around: https://www.onlinegdb.com/online_c_compiler Also games that require writing code to solve puzzles: https://www.codingame.com/ Windows MSVC compiler is an option, although windows tends to support their C++ compiler more than C. GCC doesn't mix well with windows, you'll have to emulate a unix environment with something like: vmware+ubuntu, WSL2, MSYS2, Cygwin, MinGW. This can be difficult for beginners, but there is plenty of online info/guides More on reddit.com
🌐 r/C_Programming
43
0
November 5, 2021
🌐
Install C
installc.org
Install C
Download · Simple and easy to use, yet powerful and feature-rich. The only installer to include the latest version of GCC (13.2.0) 2023 on Windows. Simply open a new .c file in VS Code and hit Run.
🌐
Reddit
reddit.com › r/cpp_questions › what is the proper way to get a compiler for c/c++
r/cpp_questions on Reddit: What is the proper way to get a compiler for c/c++
October 20, 2023 -

I'm somewhat new to c++, but have a fairly good understanding of programming in c++. I've created few 2d games too.

But I have few question regarding the c/c++ compiler. When I first try to download a compiler, I ended up downloading MSYS from mingw-64 website. But there are other sources too which kind of cofuses me to think why all of these exists. I need to know where this all begins, where is the original compiler published, why there is so many variants for the compiler. For example I can download it from mingw-64 and winlibs website. In mingw-64 website, there I have download msys, WSL or cygwin. Not a direct compiler. Even official GNU website have links to the other compilers. In winlibs website it also includes mingw-64 compiler and gcc and few other variants like ucrt runtime(posix, mcf), msvcrt(posix, mcf). (Then again what is posix and mcf) Can someone explain these stuff, what is the proper way get the compiler, what these other variants I've mentioned do and when to choose them.

At the end of the day I've no trouble editing some code using my code editor and compling for a simple program using compiler I downloaded from a random website. But I need to know exactly why and when to choose either of them.

Top answer
1 of 16
54
Why do all noobs try everything but the Windows compiler MSVC?
2 of 16
30
There is no single official C or C++ compiler. There are language standards for C and C++ (and their standard libraries) and there are multiple compilers and library implementations out there. You can probably find a lot of C compilers, but for modern C++ there are basically three choices: gcc (GNU Compiler) — the short version is this is ‘the Linux compiler’, but you can use it on other platforms as well. This is open source. clang — an alternate C++ compiler that tries to be compatible with gcc. This is the default compiler for Macs running OSX. Also open source. MSVC — Microsoft’s C/C++ compiler, Windows only for the most part. Normally used as part of the Visual Studio IDE. Closed source. If you want to write stuff for Windows only, usually the community edition Visual Studio (NOT VISUAL STUDIO CODE) is going to be the easiest thing to install and use. This comes with MSVC (Microsoft’s C/C++ compiler) and an integrated IDE that is all set up to use. I think that in newer versions of VS you can also optionally install a Windows version of clang directly and use that if you prefer it over MSVC. Other options if you’re on Windows: install “mingw”, which is a build of gcc for Windows. I’ve had the most luck using MSYS2 and then installing the packages for minGW-64 through that. This gives you a POSIX compliant programming environment that works on Windows, and also a console with a version of the *NIX bash shell. This is commonly used for building a Windows version of programs designed for Linux. install the Windows Subsystem for Linux (WSL), which lets you run a VM of a Linux system inside Windows. Then you can download the Linux version of gcc or clang inside there. This is probably the best way to do Linux program development on a Windows machine. If you’re used to working in a Linux/UNIX environment this will let you have everything you’re used to, but bridging stuff between the Linux and Windows systems can be a little annoying.
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › cpp
C/C++ for Visual Studio Code
November 3, 2021 - Note: If you would prefer a full ... built-in compilation, debugging, and project templates (File > New Project), there are many options available, such as the Visual Studio Community edition. To understand the process, let's install Mingw-w64 via MSYS2. Mingw-w64 is a popular, free toolset on Windows. It provides up-to-date native builds of GCC, Mingw-w64, and other helpful C++ tools and libraries. Download using this ...
🌐
SourceForge
sourceforge.net › projects › gcc-win64
gcc-win64 download | SourceForge.net
Download gcc-win64 for free. x64 build of GCC for Windows. x64 C/C++ compiler for Windows using (unofficial build): - gmp - mpfr - mpc - isl - cloog - mingw-w64 - gcc - seh You need at least core2 command set support to run this application. Note that every version with bundled gdb needs at ...
Find elsewhere
🌐
DigitalOcean
digitalocean.com › community › tutorials › c-compiler-windows-gcc
Install C/GCC Compiler for Windows | DigitalOcean
August 3, 2022 - One of the preferred way to install C/GCC compiler is to use CodeBlocks. Just install it, launch it and start coding to keep things simple. In other words, CodeBlocks is a free C/C++ IDE that comes with the built-in compiler. Download codeblocks from www.codeblocks.org/downloads/binaries for your ...
🌐
App Store
apps.apple.com › us › app › c-compiler › id1265577717
C Compiler App - App Store
Download C Compiler by sutheesh sukumaran on the App Store. See screenshots, ratings and reviews, user tips, and more games like C Compiler.
Rating: 4.2 ​ - ​ 109 votes
🌐
GNU
gcc.gnu.org
GCC, the GNU Compiler Collection - GNU Project
The GNU Compiler Collection includes front ends for C, C++, Objective-C, Fortran, Ada, Go, D, Modula-2, and COBOL as well as libraries for these languages (libstdc++,...). GCC was originally written as the compiler for the GNU operating system. The GNU system was developed to be 100% free software, ...
🌐
Dev-cpp
dev-cpp.com
Home | Dev-C++ Official Website
Dev-C++ 5.0 beta 9.2 (4.9.9.2) with Mingw/GCC 3.4.2 compiler and GDB 5.2.1 debugger. Download
🌐
Visual Studio Code
code.visualstudio.com › docs › cpp › config-mingw
Using GCC with MinGW
November 3, 2021 - To install the MinGW-w64 toolchain, check out this video or follow the steps below: You can download the latest installer from the MSYS2 page or use this direct link to the installer.
🌐
Dev-C++
bloodshed.net
Home - Dev-C++ Official Website
Download original Dev-C++ 5 · Supports Windows 98, NT, 2000, XP · Dev-C++ 5.0 (4.9.9.2) with Mingw/GCC 3.4.2 compiler and GDB 5.2.1 debugger (9.0 MB) Dev-C++ 4, 5 & 6 on a USB drive or CD · Get your handy USB pen drive or CD and start programming instantly!
🌐
JetBrains
jetbrains.com › clion › download
Download CLion: A Smart Cross-Platform IDE for C and C++
June 1, 2021 - Download the latest version of CLion for Windows, macOS or Linux.
🌐
Microchip Technology
microchip.com › tools › develop › mplab® xc compilers
MPLAB® XC Compilers | Microchip Technology
Our award-winning MPLAB XC C Compilers are comprehensive solutions for your project’s software development and are available as a free download.
🌐
Microsoft Learn
learn.microsoft.com › en-us › cpp › build › vscpp-step-0-installation
Install C and C++ support in Visual Studio | Microsoft Learn
October 24, 2025 - Remove unneeded files and applications from your %SystemDrive% by, for example, running the Disk Cleanup app. For questions about running previous versions of Visual Studio side by side with Visual Studio 2022, see the Visual Studio 2022 Platform Targeting and Compatibility page. Select the following button to go to the Visual Studio download page, and download the Visual Studio bootstrapper file.
🌐
Google Play
play.google.com › store › apps › details
C Compiler - Run .c Code - Apps on Google Play
C Compiler is an Advanced IDE enabling you to compile C Programs on your Mobile Phone for Free. It comes with a code editor with in-built syntax highlighting capabilities. C Compiler is - Free with no hidden charges! - Ad-Free! - Available for all platforms! Features : 1.
Rating: 3.1 ​ - ​ 236 votes
🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-c-and-cpp-compiler-on-windows
How to Install C and C++ Compilers on Windows
February 22, 2022 - If you want to run C or C++ programs in your Windows operating system, then you need to have the right compilers. The MinGW compiler is a well known and widely used software for installing GCC and G++ compilers for the C and C++ programming language...
🌐
Standard C++
isocpp.org › get-started
Get Started! : Standard C++
There are good free C++ compilers available for all major OS platforms. Download one that suits your platform:
🌐
Embarcadero
embarcadero.com › home › free tools › c++ compiler
C++ Compiler - Free Tool - Embarcadero
This free download of the C++ Compiler for C++Builder includes C11 language support, the Dinkumware STL (Standard Template Library) framework, and the complete Embarcadero C/C++ Runtime Library (RTL).