Setting up C++ Development Environment

Setting up C++ Development Environment

In this article, I am going to discuss Setting up C++ Development Environment for C++ Program Development, Compilation, and Run. Please read our previous article, where we give a detailed introduction to C++ Programming Language. If you have a working environment and if you have prior coding experience then you can skip this article. The topics discussed in this article are as follows.

  1. Compilers installations.
  2. Installing devc++, Codeblocks, and Eclipse IDE

Note: To write any code in any programming language we need a translator means compiler. In IDE compilers come with an inbuilt bundle but if you are new to C++, I recommend do not use C++ IDE as there you got less exposure to C++ syntax.

Compilers installations:

To install the C++ compiler, you need to download the compiler from www.mingw.org.

Compilers installations

You can also download compilers by installing Cygwin. Cygwin gives the Unix OS environment in the windows flavors operating system. https://www.cygwin.com/

Setting up C++ Development Environment

Follow the instruction guide present on the website.

IDE installation:

DevC++ is an IDE (Integrated Development Environment) Which has many advantages and shortcuts.

Step1: To install DevC++ IDE download it from this website. https://sourceforge.net/projects/orwelldevcpp/

To install DevC++ IDE download it from this website. https://sourceforge.net/projects/orwelldevcpp/

Step2: click on the downloaded executable followed by agreeing to the license agreement. Thereafter you will be given an option to choose the bundles which you want to download I prefer you to download the default one.

Setting up C++ Development Environment for C++ Program Development, Compilation, and Run

Step3: choose the folder you want to install and click install.

Setting up C++ Development Environment for C++ Program Development, Compilation, and Run

Step4: After Successful installation click finish and launch the IDE.

Dev C++ IDE installation

Eclipse Installation

In this article, I am going to discuss How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run.  Before Installing Eclipse IDE for C++, you should contain at least one compiler bundler like Cygwin, Mingw. If you find any difficulty in installing Cygwin, Mingw please feel free to write to me. I have installed MinGW before installing eclipse IDE and it can be downloaded from the following website.

https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Updating the Setting up Environment for C++.

Eclipse Installation:

Download the eclipse from the following URL:

https://www.eclipse.org/downloads/download.php?file=/oomph/epp/2020-09/R/eclipse-inst-win64.exe&mirror_id=1142

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Once you click the downloaded .exe file you are prompted with the following message in that select eclipse IDE offerr C/C++ developers icon.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

After selecting it give click install and IDE installation will start. It will prompt for Accept license agreement, accept it. It will take some time to install it based on the mirror you selected for it.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

After completing the installation, you should launch eclipse by clicking the launch icon.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Choose the workspace where you want to create the eclipse workspace.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Create a New Project by selecting the New->C++ project. In addition, click next then finish.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Eclipse environment is ready to run a c++ project. And run the c++ project. You should able to run the project without any error as shown below.

How to Install and Ready Eclipse IDE for C++ Program Development, Compilation, and Run

Code Blocks installation:

Code blocks can be downloaded from the website

https://sourceforge.net/projects/codeblocks/files/Binaries/20.03/Windows/codeblocks-20.03-setup.exe/download

Code Blocks installation

Once download complete launch the executable. Click next, next to all the prompts.

Code Blocks installation

After installing it launch the code blocks.

Code Blocks installation

Let’s create and execute the first c++ program in the code block. To create a C++ project, go to the new->new C++ project and select the location and click ok to it.

create and execute c++ program in code block ide

In our upcoming articles, I am going to use devC++ IDE during that time I will explain the shortcuts available in the IDE and how to create a project and successful execution of the program.

In the next article, I am going to discuss the Basics of the C++ Program. Here, in this article, I discussed how to set up C++ Development Environment and IDE for C++ Program Development, Compilation and Run and I hope you enjoy this how to set up C++ Development Environment and IDE for C++ Program Development, Compilation and Run article.

Leave a Reply

Your email address will not be published. Required fields are marked *