(Windows) Installing CPP Compiler and CMake - kurogane1031/itolab_weekly_cpp GitHub Wiki

(Windows) Installing C++ Compiler and CMake

  1. First we need to install a compiler. For simplicity, for Windows, we choose MinGW.
  2. (For windows) We need to add MinGW32/bin directory to the Path.

(Windows) Installing CMake

  1. Download CMake.
  2. Run the installer. When asked Install Options, choose Do not add CMake to system PATH. This is to avoid any conflict, if for some reason, there is already exist CMake folder in you Windows Path. CMAKE Options
  3. Proceed with the installation

(Windows) Installing MinGW32

  1. Download MinGW binaries and run the executable.
  2. When completed, run the MinGW Installation Manager
  3. In the package, select both mingw32-base-bin and mingw32-gcc-g++-bin MinGW Selection
  4. On the top left corner of MinGW Installation Manager, select Installation and Apply Changes.
  5. Once completed, we can exit the MinGW Installation Manager.

(Windows) Adding directory to Path

  1. Go to Start and search for Environment Variables. Click to open. System Properties
  2. Under User variables for <UserName>, click on Path and select Edit. Environment Variables
  3. Click on New, Browse and locate CMake\bin and MinGW\bin. If you didn't install it in different location, by default it should be C:\Program Files\CMake\bin and C:\MinGW\bin. Edit Environment Variables
  4. Select OK and exit.
  5. To verify MinGW, Open Command Prompt, and type g++ --version. It should print the version of MinGW that you've downloaded. CMD
⚠️ **GitHub.com Fallback** ⚠️