Just Sharing Knowledge

Tutorial installing Code::Blocks and MinGW individual package (Windows)

In this tutorial we wil learn how to install and integrate Code::Blocks individual package (Exclude MinGW) with MinGW compiler.
Lets go to the tutorial step:

  1. Install MinGW compiler. There are two kinds of MinGW installer you can use.
  2. Download Code::Blocks individual package (Exclude MinGW) from official website codeblocks. Choose file installer for windows ” codeblocks-10.05-setup.exe “ (Latest version : Code::Blocks 10.05). You can downlond it directly from BerliOS or Sourceforge.net.
  3. Install Code::Blocks by double-clicking on the file and the next steps the same as my tutorial about “Tutorial Installing Code::Blocks and MinGW integrated package (Windows)”.
  4. Note, before you create new project you must change compiler setting by select toolbar menu “Setting->Compiler and debugger” and you will see a dialog like image below.Select on tab “Toolchain executables” and click on “Auto-detect” button. Wait until auto-detect message appear like image below..Click “Ok” button on that message and click “Ok” button on a dialog “compiler and debugger setting”.
  5. Create new project from menu “File->New->Project” and select “console application”. See my tutorial about “Tutorial Installing Code::Blocks and MinGW integrated package (Windows)”.
  6. Put this code on the “main.cpp”
    #include <iostream>
    using namespace std;
    int main()
        cout << "Hello world! This is my first program.." << endl;
        return 0;
  7. Compile the program by press “F9” and you will see the result like image below.Congratulations you have successfully integrate Code::Blocks with MinGW….

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: