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.
- Compilers installations.
- 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.
To install the C++ compiler, you need to download the compiler from www.mingw.org.
You can also download compilers by installing Cygwin. Cygwin gives the Unix OS environment in the windows flavors operating system. https://www.cygwin.com/
Follow the instruction guide present on the website.
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/
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.
Step3: choose the folder you want to install and click install.
Step4: After Successful installation click finish and launch the IDE.
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.
Updating the Setting up Environment for C++.
Download the eclipse from the following URL:
Once you click the downloaded .exe file you are prompted with the following message in that select eclipse IDE offerr C/C++ developers icon.
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.
After completing the installation, you should launch eclipse by clicking the launch icon.
Choose the workspace where you want to create the eclipse workspace.
Create a New Project by selecting the New->C++ project. In addition, click next then finish.
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.
Code Blocks installation:
Code blocks can be downloaded from the website
Once download complete launch the executable. Click next, next to all the prompts.
After installing it launch the code blocks.
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.
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.