Module 02 of 11

Installation & Setup

Lessons

About This Module

C is a compiled language, so before you can run anything you need a compiler that turns your source code into a program your computer can execute. This module gets that set up on your machine so every later module has somewhere to run.

The lessons cover the most common setups: GCC on Windows through MinGW, macOS with the Xcode Command Line Tools and VS Code, and GCC on Linux. It closes with the setup and Hello World chapters from a full beginner course, so you finish by compiling and running your first program.

Pick the lesson that matches your operating system, make sure gcc --version or clang --version prints a version number in your terminal, then continue on to Syntax & Basics.

Lessons

4 videos
01

Install GCC on Windows with MinGW

Step-by-step walkthrough of installing the MinGW GCC compiler on Windows 11 using MSYS2, so you can compile C from the command line.

02

Set Up C on macOS

How to set up a C programming environment on a Mac with Visual Studio Code and the gcc compiler that comes with the Xcode Command Line Tools.

03

Install GCC on Linux

Installing the GCC compiler on Ubuntu with the build-essential package, checking the version, and compiling and running a hello.c program.

04

Setup and Hello World

The opening chapters of freeCodeCamp's C course: Windows setup, Mac setup, and your first Hello World program. Starts at the 1:22 mark.