Compiling and Building program in C++

Last Updated :

C++ uses Compiler to compiler and check errors before run the program, else erroneous C++ program can not be run. If there is any error in the program, then you have to remove those errors by correcting program. Then you can run the program.

Compilation

To compiler program, there are various compilers available depending on your operating system.

Note –
Most of the operating systems does not contain a compiler, so we have to install it later.

These are various compiler as given below:

  1. GCC, the GNU Compiler Collection g++
  2. clang: a C language family frontend for LLVM clang++
  3. MSVC, Microsoft Visual C++ (included in Visual Studio) visual – C++
  4. C++Builder, Embarcadero C++ Builder (included in RAD Studio) C++ builder

You need to check official manual of appropriate compiler, to learn how to compile and run a C++ program on that compiler.

This article is contributed by Raju Kumar. If you would like to contribute, you can also mail your article to raju.cplusplus@gmail.com. Please suggest your improvement for this article if you find anything incorrect.

Comment
Next Article
Mithlesh Upadhyay Published 18 Apr, 2020 · 1 min read

Mithlesh Upadhyay is a Computer Science and AI expert from Madhya Pradesh with strong academic background (BE in CSE and M.Tech in AI) and over six years of experience in technical content development. He has contributed tech articles, led teams, and worked in Full Stack Development and Data Science. He founded the w3colleges.org portal for learning resources.

Article Tags :

Similar Reads

  • Four Pillars of Object-Oriented Programming (OOPS)

    Get an overview of four pillars of object-oriented programming (OOP) and see their suitable real life examples. What is OOP? Picture a cluttered garage🛠️. Tools are scattered everywhere,…

    4 min read
  • What is Overriding in C++

    Write a program in C++ to depict the concept of overriding or Dynamic polymorphism. Overriding is a type of polymorphism. Polymorphism in OOP languages means to take more…

    2 min read
  • What should we use void main() or int main() ?

    There is question that what should we use void main() or int main() ? void main() { /* ... */ } Or, int main() { /* ... */…

    2 min read
  • C Comments

    Prerequisite – C Language Introduction C comments explain code and improve readability. These do not affect program execution. You can use comments in C to clarify code and describe…

    1 min read
  • What is Object-Oriented Programming

    OOPs stands for Object Oriented Programming. OOP is a programming style with Classes, Objects, Inheritance, Polymorphism, Encapsulation, Abstraction. Before OOP, Procedural Programming like C was used, based on…

    2 min read
  • Code editors

    Code editors are where programmers spend most of their time. There are two main types of code editors: IDEs and Lightweight editors. IDEs (Integrated Development Environments) IDEs (Integrated…

    1 min read