Code::Blocks is an open source Integrated Development Environment
(IDE). This will aid you compiling and debugging C and C++ programs.
This page will help you download the Code::Blocks IDE installation
(which includes the complier and debugger).
There is also a guide to help you setup and use Code::Blocks. Please
click here to download our
instruction guide for Code::Blocks.
A complete manual is available from the Code::Blocks
Libraries for GLUT:
For students taking CIS 41: Here is a guide to using GLUT
Libraries for OpenGL 3.0:
For students taking a class using OpenGL 3.0: Here is a guide to
using OpenGL 3.0
You will need to download the code.zip
file as well.
When you install Code Blocks, you can access this information via Help, C++ Reference.
Please select your Operating System:
Microsoft Windows Install:
here to go to a download page for Code::Blocks for Windows.
Should the system ask you to select a compiler, please select
If you are using the Mac OS,
you will need to do the following two steps to install Codeblocks
- Install Xcode Command Line for your version of Mac OS X (10.7
Lion, 10.8 is Mountain Lion). You can obtain Xcode Command Line
It will ask if you to login with your Apple ID (if you don't
you click on the Register button)
Once you have logged in, in the search box on the left
Near the top of the search results you will see Xcode
Command Line tools. Please select the appropriate version to
Once it has downloaded, install it. Once installed your computer
now have the gcc and g++ compilers for C and C++.
If you are a Mac user,
encounter two problems:
1. Typing a key activates a keyboard shortcut rather than
key. This is a known bug with the new release. To fix please
From the menu, choose Plugins
Choose the bottom entry "Manage Plugins"
Scroll down the list and highlight "Keyboard Shortcuts" and
the right side choose "Disable"
Restart CodeBlocks and all should work.
2. Problems printing from within CodeBlocks:
This was a problem with the previous release and may have
fixed in the new version. If you have trouble printing from
CodeBlocks, you may do one of the following:
a. File, Export, As PDF. Then open the PDF and print that.
character in your file will not be printed, so please have a
at the end.
b. Copy your program from within CodeBlocks and paste it
into a text
editor or word processor and print from there.
newer Macs, you may need to go to System Preferences
& Privacy > General. Then change in "Allow
settings to "Anywhere".
installing Code::Blocks you might want to set this back
to "Mac App
Store and Identified Developers".
file and place CodeBlocks.app where
you like it.
The suggested location is
Installation for Fedora Linux:
In a console window, become root
and then execute the following command:
In the Applications Pull Down Menu, go to Programming and click on:
Open a console window and then execute the following command:
Installation for Ubuntu Linux:
1) Add the repositories to /etc/apt/sources.list:
Open the file with a graphical editor as root. Paste the following
in a terminal:
sudo gedit /etc/apt/sources.list
Paste this at the end:
2) To make sure your package system trusts these sources. Add their
deb http://apt.wxwidgets.org/ lenny-wx main
Enter these two lines at the terminal:
wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -
And update the packages by entering the following lines on the
sudo apt-get update
sudo apt-get upgrade
3) Install Code::Blocks
Enter the following line in the terminal:
sudo apt-get install libcodeblocks0 codeblocks libwxsmithlib0 codeblocks-contrib
You are able to step 3 whenever you want you to get the latest nightly
You should see Code::Blocks in the Programming
Languages listing of your programs.
info on Code::Block and Ubuntu
If you are you computer savy and would like to update Code::Blocks
to a Nightly Build (nightly updates). You may download them from here.
There is a beta version of 7Zip
that supposedly works with Vista. Please select 32 bit
bit version of Windows.
A work around for 7Zip is to extract the files to a
temporary directory in the documents folder and then copy them over to
the program files/codeblocks directory.
If you are interested in the source codes, you can download them
from here: Code Blocks
Core - G++
Prof. Yedidyah Langsam
Prof. Theodore Raphan