Intro | MinGW with Code::Blocks setup | Your First Program | Adding PDCurses | Adding Allegro | Adding SDL
However, if you are using a windows based computer it isn’t set up yet for you to write programs yet, so the first thing you’ll need to do is install a compiler. Also, you may want an IDE, or Integrated Development Environment to help you. All of the programs on this website are written in C/C++. There are several C/C++ compilers and IDEs to choose from. Cymon’s Games recommends MinGW with Code::Blocks.
Introduction
Updated almost daily, Code::Blocks is a development environment that works well with the MinGW C/C++ compiler, which means you’ll actually be loading two programs. Fortunately Code::Blocks maintains a downloader that sets up both at once for you.
Initial Setup
To help you get started I’ve built you a short video tutorial:
To install Code::Blocks:
- Go to http://www.codeblocks.org, click on downloads then download the latest binary release with MinGW.
- Run the downloaded package.
- Click Next then click I Agree.
- On the next screen you can choose optional packages to install. Which ones you pick are up to you. Click Next when ready.
- Remove the “Program Files\” from the install directory and leave just “C:\CodeBlocks”
- Click Install and wait for the installation to finish.
- When the installation is run Code::Blocks.
Making your First Program
Once MinGW and Code::Blocks is install you’re ready to start programming. It is best practice to always use a project so to finish of we’ll start you on your first project.
Picking up in the video where the instructions left off:
- Click File->New->Project.
- Select the Console Application button. Press Next.
- Fill out the fields like so:
- Project Name: Hello
- Folder to Create Project in: Select your “My Documents” directory or a specific subdirectory of your choosing.
- Press Next. Don’t worry about any of the settings you’re now looking at for the moment and press Next again.
- Make sure you’ve selected the appropriate language (C in this case) and press Next.
- In the window on the left expand the Sources branch and double-click on the main.c file.
- In the main window is where you will type your programs. There is a default “hello world” program there already that you can use.
- When you are ready press the build and run button to run your first program!
I’m not using Windows XP!
These instructions are designed for windows systems and tested in XP. If you aren’t running XP and can’t figure out how to set up your system please contact me and we’ll try to work it out.

