Stats

1658 Contributors: 28 Monday, August 7, 2017
Licensed under: CC-BY-SA
Not affiliated with Stack Overflow
Rip Tutorial: riptutorial@gmail.com
Roadmap: roadmap

Compiling and Building

Introduction

Programs written in C++ need to be compiled before they can be run. There is a large variety of compilers available depending on your operating system.

Remarks

Most operating systems ship without a compiler, and they have to be installed later. Some common compilers choices are:

Please consult the appropriate compiler manual, on how to compile a C++ program.

Another option to use a specific compiler with its own specific build system, it is possible to let generic build systems configure the project for a specific compiler or for the default installed one.

Related Examples