Sunday, February 27, 2011

Setup GLFW project in code::block

TO create GLFW (OpenGL Framework) Project in code::block, at first you have to download the GLFW framework from this website for windows. If you are running another machine then download for that machine from

Let's create a GLFW project
step 1:

first, unzip the zip file
step 2:
copy the glfw.h file from the include folder of unzip file of step 1
and paste to the folder "C:\Program Files\CodeBlocks\MinGW\include\GL"
again copy all file (libglfw.a and libglfwdll.a ) from the lib_mingw folder of unzip file of step 1
and paste to the folder "C:\Program Files\CodeBlocks\MinGW\lib"
also, copy the glfw.dll file from the lib_mingw folder of unzip the file and paste it
inside "C:\Windows\System32" folder.
step 3:
Open the code block you will see window as below and click on create new 
project link

Friday, February 25, 2011

Features of code::block



  • Open Source! GPLv3, no hidden costs.
  • Cross-platform. Runs on Linux, Mac, Windows (uses wxWidgets).
  • Written in C++. No interpreted languages or proprietary libs needed.
  • Extensible through plugins


  • Multiple compiler support:
    • GCC (MingW / GNU GCC)
    • MSVC++
    • Digital Mars
    • Borland C++ 5.5
    • Open Watcom
    • ...and more
  • Very fast custom build system (no makefiles needed)
  • Support for parallel builds (utilizing your CPU's extra cores)
  • Multi-target projects
  • Workspaces to combine multiple projects
  • Inter-project dependencies inside a workspace
  • Imports MSVC projects and workspaces (NOTE: assembly code not supported yet)
  • Imports Dev-C++ projects

Tuesday, February 22, 2011

Setup wxWidget in code::block

TO create Wxwidget Project in code::block, at first you have to download the wxPack_v2.2.10.06.exe windows installer from this website windows.

Let's create Wxwidget project
step 1:
run .exe file that you have downloaded
Click next

Setup OpenGL(glut) in code::block

Download the glut library from the website for windows.

Steps to create glut project in Code::block.
Step 1: Extract the downloaded zip file.

Step 2: Browse extracted files. Copy the glut.h file and paste it into the directory "C:\ProgramFiles(x86)\CodeBlocks\MinGW\include\GL". Copy glut.lib file and paste it into the directory "C:\Program Files(x86)\CodeBlocks\MinGW\lib". Also, copy the glut.dll and paste it into
the directory "C:\Windows\System32".

Monday, February 21, 2011

Setup SDL 1.2 version in code::block

Visit SDL download page Download file SDL-devel-1.2.15-mingw32.tar.gz (Mingw32) from Development Libraries section for your respective machine Win32/Linux. If you are using Visual C++ compiler in Code:blocks then download another file for Visual C++. Required links are highlighted in screen shot below:

Steps to create SDL project in Code::blocks:
Step 1: Extract downloaded  zip file (SDL2-devel-x.x.x-mingw.tar).

Step 2: Create folder in any directory and give a name SDL 1.2 (eg. c:\SDL 1.2).