C++ programming without using visual studio

Musaddiq Al Ali (Ph.D.)
5 min readNov 13, 2020

Visual studio is a great tool for developer and programmer. However, it takes a huge space. Here we will introduce small size alternative and write our first Hello world program with C++.

Install C++ compiler

First, We need to install C++ compiler. we need to download MinGW-w64 by clicking here. After downloading, start installation.

Add alt text

then wait for a while

Add alt text

Select the bit version you want. Here we will install 64 bit version, therefore; we will select from “Architecture” the option x86–64 as shown below

Add alt text

click next

Add alt text

The wait for a while for installation to complete.

Add alt text

We need to set path variable for the compiler inside windows path variables. We can do it with several methods. Here we will open Control penal

Add alt text

Then write env in the search bar

Add alt text

Add alt text

Add alt text

After clicking on” Environment Variables” button we click on “path” the click edit

Add alt text

We select new the browse

Add alt text

We browse to “bin” file of WinGW-W64 installation folder. Then Click Ok to finish the process.

Add alt text

Then we have to restart the computer to finish the setup process.

Install Code lite IDE

Here we will introduce code lite platform to program with C++. First download Code lite IDE by clicking here the start installing

Add alt text

Add alt text

Add alt text

Add alt text

Then after Finishing the installation and opening the IDE, we need to configure the Compiler

C++ compiler configuration with Code lite IDE

Let us close the installation wizard and update Code lite as shown in the picture below

Add alt text

After updating, we will run will select “Help” and then “Run the setup wizard”

Add alt text

Do the following instruction as shown in the series of pictures below.

Add alt text

Add alt text

Add alt text

Add alt text

Next, setup you can select IDE theme

Add alt text

Add alt text

Add alt text

Make First Program

Select new work space

Add alt text

Add alt text

Select the desire workspace location and name of the work folder.

Add alt text

Add alt text

Add alt text

Then setup the project as the following.

Now go to project tree and select “main.cpp” file and click on it, then run the the example program as shown below:

Add alt text

Add alt text

Add alt text

Now we run our first C++ program without using visual studio

--

--

Musaddiq Al Ali (Ph.D.)
0 Followers

Specialized in structural optimization and laser physics