xcodelovers

Just Sharing Knowledge

Tag Archives: gcc

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….

Tutorial Installing TDM-GCC (Windows)

TDM-GCC is free compiler package installation for windows 32/64 bit. It combines the most recent stable release of the GCC (GNU Compiler Collection) toolset with the free and open-source MinGW (Minimalist GNU for Windows) runtime APIs to create library for Microsoft Compiler and SDK platform. You can find more detailed information on the official website TDM-GCC.

Ok, lets we jump to the installation step.

  1. Download TDM-GCC from here. Select installation package compatible with your windows platform (32/64 bit). In this tutorial we use windows platform 32 bit. So we must select “tdm-gcc-4.5.1.exe”.
  2. After download complete you just simply double click on the file and then you will see a dialog setup option like image below. Click on “Create” button.
  3. On the next screen you will see a dialog to select type edition windows paltform (32/64 bit) like image below. Choose “MinGW/TDM (32-bit)” and then click on “Next” button.
  4. On the next screen you will see a dialog to select directory installation like image below. In this tutorial we use default directory “C:\MinGW32” and then click “Next” button.
  5. And next we will see a dialog selection of dowload for update mirror like image below. Just leave the option and then click “Next” button.
  6. On the next screen you will see a dialog to select type of installation like image below. Just leave it and then click on “Install” button.
  7. Wait until the installation process is complete. Next, you will see a dialog complete installation and then click “Next” button like image below.
  8. Finally you will see a dialog information complete setup wizard and then just click “Finish” button.
  9. Now, TDM-GCC is ready to use. If you want to create project base on this compiler you may choose a lot of Editor IDE such as Eclipse, Code::Blocks, DevC++..etc. See my other Tutorial how to integrate Code::Block and MinGW or Tutorial how to integrate Eclipse and MinGW…Good Luck