1.1 Project View

CodeBlocks

[Contents] CodeBlocks Manual   [Search] Search

[Table of contents]

1.1 Project View


In CodeBlocks, the sources and the settings for the build process are stored in a project file <name>.cbp. C/C++ sources and the corresponding header files are the typical components of a project. The easiest way to create a new project is executing the command ’File’ /’Project’ and selecting a wizard. Then you can add files to the project via the context menu ’Add files’ in the Management window.
CodeBlocks governs the project files in categories according to their file extensions. These are the preset categories:
Sources
includes source files with the extensions *.c;*.cpp;.
ASM Sources
includes source files with the extensions *.s;*.S;*.ss;*.asm.
Headers
includes, among others, files with the extension *.h;.
Resources
includes files for layout descriptions for wxWidgets windows with the extensions *.res;*.xrc;. These file types are shown in the ’Resources’ tab of the Manangement window.
The settings for types and categories of files can be adjusted via the context menu ’Project tree’ /’Edit file types & categories’ . Here you can also define custom categories for file extensions of your own. For example, if you wish to list linker scripts with the *.ld extension in a category called Linkerscript, you only have to create the new category.
Note:
If you deactivate ’Project tree’ /’Categorize by file types’ in the context menu, the category display will be switched off, and the files will be listed as they are stored in the file system.


[Previous] 1  CodeBlocks Project Management
[Next] 1.2  Notes for Projects

Created: 2010/25/05 11:52   Updated: 2010/25/05 11:52
Author: HighTec EDV-Systeme GmbH
Copyright © 2010 HighTec EDV-Systeme GmbH