
Click the three boxes indicated below: mingw32-base, mingw32-gcc=g++, msys-base. “Ensure on the left that Basic Setup is highlighted. Here’s another guide that I thought was quite clear: MinGW C++ Download and Installation

Install Cygwin (minimal information follows) Install MinGW (detailed information follows) But there are ways to install the “real” gcc if you need it. This almost certainly doesn’t matter to you, especially for CSC173. You can tell this from the output of cc -version: % cc -versionĪpple clang version 12.0.5 (clang-1205.0.22.11)Īpple also makes the name gcc an alias for clang since many programs and packages developed by the open software community assume that the compiler is named gcc (the “ GNU Compiler Collection”). Note that Apple’s compiler is actually a version of Clang, which is part of LLVM. If it says “command not found,” then the compiler is not properly installed. If you plan to work from the Terminal or using an IDE other than XCode, this might be enough for you.Īfter installing, launch the Terminal application and type “ cc -version” without the quotes ( cc for “C compiler”) followed by Return: cc -version This still requires a free Apple developer account, but is a much smaller download.

Install only the Apple Developer Command Line Tools (CLT)


You will (probably) also need to run it at least once to “Install additional required components” even if you don’t intend to use the XCode IDE. This requires a free Apple developer account, and is a huge download (version 12.5.1 is an 11GB download, which unpacks into another 20GB or so), most of which you won’t use unless you’re also a macOS/iOS developer (and probably not even then). Installing a C Compiler (for CSC173) Installing a C Compiler (for CSC173) George Ferguson Last update: Summer 2021Ĭreative Commons Attribution-ShareAlike 4.0 International LicenseĪ quick summary of current options for installing a C compiler on your computer.
