xcodelovers

Just Sharing Knowledge

Tutorial Installing Code::Blocks and MinGW integrated package (Windows)

There are two kinds of  Code::Blocks installer from binary package :

  1. Code::Blocks individual package installer without MinGW/GCC include. (Where you must install MinGW/GCC and Code::Blocks separately). See my tutorial how to install its manualy.
  2. Code::Blocks integrated package installer with MinGW/GCC.

In this tutorial we will use the second installer package for windows platform because it is the easy way to use Code::Blocks with MinGW/GCC. Now just do the following steps:

  1. Download Code::Blocks and MinGW integrated binary package in here. Choose file installer for windows ” codeblocks-10.05mingw-setup.exe “ (Latest version : Code::Blocks 10.05). You can downlond it directly from BerliOS or Sourceforge.net.
  2. After you download it then you just double click on that file and you will see dialog welcome setup like the image below. Click on “Next” button.  
  3. Then a dialog license agreement will appear like screen shoot image below. Click on “I Agree” button.
  4. A selection type installation dialog will appear like screen shoot image below. In this tutorial we do not make any changes just click the “Next” button.
  5. A choose location of installation dialog will appear like image below. In this tutorial we will use default location. You may choose a different installation location of installation as you wish. Then just click on “Install” button.
  6. Wait until the installation is complete.
  7. After the installation is complete then you will see a dialog option to run Code:: Blocks now or later like image below. Select the “Yes” button to run Code::Blocks now.
  8. Then you will see visual IDE of Code::Blocks like image below.
  9. Installation of Code::Blocks and MinGW is finished. Then to check it we will make a sample program “HelloWord”.
  10. Select on menu File->New->Project..Now you will see a project choose dialog like image below and for this tutorial select “Console Application” on the top right corner. Then click on “Go” button or just double click on “Console Application” .
  11. Now you will see a dialog cosole application like image below. In this tutorial we do not make any changes just click the “Next” button.
  12. On the next screen you will see a dialog of language selection like image below. In this tutorial we choose “C++” and then click the “Next” button.
  13. On the next screen you will see a dialog of select project name and folder for workspace like image below. After finished click the “Next” button.
  14. Then you will see a dialog for select type of compiler like image below. n this tutorial we do not make any changes just click the “Finish” button.
  15. On the next screen you will see Code::Blocks IDE like image below. Choose left screen on “Management” panel and click “Project” tab. Expand on “src” folder and double click on file “main.cpp” and you will see listing code on the middle of editor.
  16. Try to change listing code on the editor with this..
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
        cout << "Hello world! This is my first program.." << endl;
        return 0;
    }
    
  17. Then build and run program by select menu “Build->Build and Run” or just press “F9” button. You will see the result like image below. Congratulations you are ready to program with Code::Blocks. Have fun with it….
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: