Working with Project Files in Bloodshed Dev-C++


Dr. J (Juliano@csuChico.edu)
Department of Computer Science
California State University, Chico
Chico, CA 95929-0410


February 22, 2005



This document explains how to start a new Project in the Bloodshed Dev-C++ integrated development environment (IDE). Project files are used to organize and facilitate compilation of programs that are based on multiple source and header files. The figures in this document are based on Dev-C++ 4.9.9.1 but the instructions should be applicable to all versions of the IDE.



  1. Start up the Bloodshed Dev-C++ IDE. The interface should look similar to the image at the right.

    Click New then select Project ...




  1. A window similar to the image at the right will pop out. Since our Projects are designed to compile and run on a Unix server, select Console Application as the project type. You may enter a different Project filename in the Name textbox. Be sure that you correctly specify whether you are developing a C Project or a C++ Project by clicking the appropriate radio button.

    Click the Ok button to continue ...




  1. You will be prompted for a destination where your Project will be saved. Next, the interface will look similar to the image at the right.

    Dev-C++ generates a skeleton Project for you. By default, this Project contains a single source file (named main.c). You can rename this source file by clicking File and then Save As ... to give it a new name. (Note: the [*] next to any filename in a Project indicates that the file has not been saved since the last modification.)




  1. To include additional header or source files to a project, click New, followed by Source File. Click the Yes button when prompted if you want to "Add new file to the current project?". By default, Dev-C++ names this new source file Untitled1 – which can be renamed by selecting File then Save As ... as before.

    You can use either the Project Tree or the Filename Tabs to switch to different files in a Project ...




  1. The Classes Tab shows what classes and functions are available in this Project. You can click on a class or function name to jump to the definition for that class or function.

    To compile and run a Project, click Execute and select Compile & Run (or hit the F9 key).

    Alternately, to simply compile a Project, click Execute and select Rebuild All.





This document is also available in PDF .