Code::Blocks

Introduction:
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 file (which includes the complier and debugger).

Instruction Guide:
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 website.

Libraries for GLUT:
For students taking CIS 41: Here is a guide to using GLUT in Code::Blocks.
C++ Reference Page. When you install Code Blocks, you can access this information via Help, C++ Reference.


Download Information:
Please select your Operating System:
Installing Code::Blocks


Microsoft Windows Install:
Click here to go to a download page for Code::Blocks for Windows.

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.
Vista Note:
There is a beta version of 7Zip that supposedly works with Vista. Please select 32 bit or 64 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 in Prof. Gurwitz's class, here is a special bundle for you. Just install the bundle, no extra settings need to be made.

Source Codes:
If you are interested in the source codes, you can download them from here:
Code Blocks - MinGW Core - G++


If you are using the Mac OS, you will need to do the following:

Pre-Install steps:

Here is a step by step instruction file for setting up X11 and XcodeTools for the Mac.
  1. Make sure that X11 is installed in your system (check in your Application menu). If not, you'll need to install it from your Mac OS disc.
  2. Install Developer Tools: You may be able to skip this step, if you are using Mac OS X 10.4 Tiger and have installed the Developer tools.
Download Code::Blocks. Uncompress the zip file and place CodeBlocks.app where you like it.
The suggested location is /Developer/Applications or ~/Applications.

Installation for Fedora 8 Linux:

Installing Code::Blocks
In a console window, become root and then execute the following command:
            yum install codeblocks


Running Code::Blocks
In the Applications Pull Down Menu, go to Programming and click on: Code::Blocks IDE
or
Open a console window and then execute the following command:
            codeblocks

Installation for Ubuntu Linux:

Installation Instructions From:
http://forums.codeblocks.org/index.php/topic,8208.msg61085.html#msg61085

1) Add the repositories to /etc/apt/sources.list:

Open the file with a graphical editor as root. Paste the following line in a terminal:
gksu gedit /etc/apt/sources.list

Paste this at the end:
# codeblocks
deb http://lgp203.free.fr/ubuntu/ gutsy universe
# wx widgets
deb http://apt.wxwidgets.org/ gutsy-wx main

Note: Depending on what version of Ubuntu you are using, in step 1 you
may need to replace gutsy with feisty.

2) To make sure your package system trusts these sources. Add their keys.

Enter these two lines at the terminal:
wget -q http://lgp203.free.fr/public.key -O- | sudo apt-key add -
wget -q http://apt.wxwidgets.org/key.asc -O- | sudo apt-key add -

And update the packages by entering the following lines on the terminal:
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 build.

You should see Code::Blocks in the Programming Languages listing of your programs.
Enjoy!

Other info on Code::Block and Ubuntu

Lawrence Goetz
Prof. Yedidyah Langsam
Prof. Theodore Raphan