Wednesday, November 22, 2017

Environment Setup

Before going to the main part we need to make sure that we have a compiler. I think at this point all of you have a common question on your mind, what is Compiler?
Great!, We all know that machine only knows 0 and 1. But in many languages (like C/C++) we will write code using letters, digits and special characters. Which machine can’t read directly so we need something which can read our code and machine’s also.

Compiler converts human code into machine code so that machine understand it properly. This process called compilation.

If you have a compiler already then you can skip this post.


Now a days, there are two many option for setting up Environment. It’s tough to discuss all of this in this post. So here we will discuss about code blocks and show you the step how to install code blocks with GNU GCC compiler for windows/Linux users as it is most popular IDE also suitable for beginners.


For Mac OS users Code blocks is not a good option as it crashes frequently on mac but there is a cool alternative for that which is Xcode. We’ll discuss about Xcode also.


Let’s see the process step by step :


Step 1: Type code blocks in google search bar and go for it, you will find their official site in the first search result or you can go directly from here.

Step 2: There you will find Download option. Click on the Download option.

Step 3: Now you will find an option “Download the binary release”. Click on it.

Step 4: Here you will see some option like this :

  • Window XP / Vista / 7 / 8.x / 10
  • Linux 32-bit
  • Linux 64-bit
  • Mac OS X

Go for the suitable option depending on your operating system.
Any problem? if yes! then click here to go to that page directly.

Step 5: Windows user download codeblocks-16.01mingw-setup.exe by clicking on sourceforge.net .


NOTE: If you are facing any problem with the above procedure or it creates any confusions then you can watch this to clear your confusion. But remember this is an old video, if you want to download the latest version then you have to follow the above procedure. You can watch this to be sure about the procedure.


After complete downloading you need to install it. You can do in the same process like other application. Just follow the instruction.

Or you can follow this video .



You can also follow the same procedure given for windows user until the 4th option. But it is more easier to download through command line instead of downloading manually.

Step 1: Open command line (Press ).

Step 2: Enter the following command :

     sudo add-apt-repository ppa:damien-moore/codeblocks-stable
     sudo apt-get update 
     sudo apt-get install codeblocks
 


Step 1: Open the App Store.

Step 2: Search for Xcode. You will find it in the first option.

Step 3: Click on the Get option.

Step 4: Now you will see the Install App option visible. Click on it and wait.


congratulations! all of you are ready to go :)


Next Topic


No comments:

Post a Comment