Transcription of Manual for Code::Blocks and Simplecpp - IIT Bombay
1 Manual for Code::Blocks and Simplecppfor CS101 courseDepartment of Computer Science and EngineeringIndian Institute of Technology - BombayMumbai - 15, 2014 Contents1 Code::Blocks .. Simplecpp ..12 Code:: block IDE13 Working with Code::Blocks and Simplecpp on Installation of Simplecpp with Code::Blocks .. Writing a new C/C++ Program .. Project .. Project using .. Project using Simplecpp .. Building the Project .. Opening existing program/project .. 324 Working with Code::Blocks and Simplecpp on Installation of Code::Blocks .. Installation of packages for header file .. Installation of Simplecpp .
2 Integrating Simplecpp with Code::Blocks IDE .. Writing a new c/c++ program .. Building the Project .. Project .. Project using .. Project using Simplecpp .. Opening Existing Program/Project .. 49iList of Figures1 Code:: block IDE ..12 Menu Bar ..23 Main Toolbar ..24 Debugger Toolbar ..35 Compiler Toolbar ..36 Manager ..37 Editor, Start/Home Page ..48 Shortcut to Create New Project or Open Existing Project ..49 Shortcut to History of Projects Opened Using Code::Blocks ..510 Logs ..511 Welcome to Code::Blocks Simplecpp Setup ..612 Accepting License Agreement ..613 License Inforamtion of Code::Blocks EP.
3 714 Location of Installation ..715 Start Menu Folder ..816 Application Shortcut Desktop Icon ..817 Installation Step ..918 Progress of Installation ..919 Basic Information .. 1020 Completing the Insallation .. 1021 Code:: block Simplecpp IDE .. 1122 New form template .. 1223 New console application wizard .. 1324 Selecting language for the project .. 1325 Providing title and folder for the project .. 1426 Selecting compiler for the project .. 1427 Project node with no files .. 1528 Adding file to the project .. 1529 Selecting type of file to be added in the project .. 1630 Select checkbox to skip this window next time .. 1631 Select the language of the file added.
4 1732 Details of file to be added .. 1733 Selecting the location and file name to be added .. 1834 Finalize details of file to be added .. 1835 Project node with + sign indicating it can be expanded .. 1936 Project node expanded .. 1937 Writing code in editor .. 1938 New form template .. 2039 New console application wizard .. 2040 Selecting language for the project .. 2141 WinBGIm project .. 2142 Providing title and folder for the project .. 2243 Selecting compiler for the project .. 2244 Finalize details of file to be added (for line project) .. 2345 Project node with + sign indicating it can be expanded .. 2346 Writing program in editor (line project).
5 2447 New from template .. 2448 Simplecpp project .. 2549 Providing title and folder for the project .. 2550 Selecting compiler for the project .. 2651 Empty project node in Management window .. 2652 Adding files to empty project node .. 2753 Selecting c/c++ source for project .. 27ii54 Selecting language for the file to be added .. 2855 Giving location and name of the file to be added .. 2856 Finalize details of file to be added .. 2957 Project node with + sign indicating it can be expanded .. 2958opening file in editor .. 3059coding .. 3060 Output of hello world project .. 3161 Output of line project.
6 3162 Output of 3poly project .. 3163 Selecting Open under file in Menu Bar .. 3264 Select file with .cbp extension to open an existing project .. 3265 Code:: block in Ubuntu Software Center .. 3366 Installing Code:: block using command line .. 3367 Installing Simplecpp .. 3568location of Simplecpp /s++ .. 3569 Compiler and debugger settings .. 3670 Copying the compiler .. 3671 Change Toolchain Executable .. 3772 Changes to be made in Toolchain Executables .. 3773 Simplecpp s directory .. 3874 Additional Paths settings .. 3875 Starting a new project .. 3976 Selecting the language for project .. 3977 Title for Project.
7 4078 Selecting Compiler to Compile the Program .. 4079 Selecting Simplecpp for projects including Simplecpp .. 4180 Project Node when Expanded .. 4181 Project Node when Expanded for (with code shown in editor) .. 4282 Project node when expanded for (with code shown in editor) .. 4283 Project node when expanded for (with code shown in editor) .. 4384 Output for .. 4385 Project build options .. 4486 Linker settings (Add Libraries) .. 4487 Interface for adding libraries .. 4588 Files/libraries to be added for graphic projects .. 4589 Relative or absolute path for files/libraries .. 4690libraries selected .. 4691 Libraries added to project.
8 4792 Output for .. 4793 Output for .. 4894 Select file with .cbp extension to open an existing project .. 49iii1 Code::Blocks Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. [1]. Developed by The Code::Blocks Team , Code:: block is a free, open-source [2] and cross-platform IDE, which supportsvarious free compilers. It is built around plugin framework, which allows functionality of Code:: block tobe extended by installing appropriate plugins. Plugins required for compiling and debugging are alreadyprovided by default. This Manual is prepared after installing and testing Code:: block on Ubuntu Windows SimplecppSimplecpp is a package used to write and execute turtle based non-graphic/graphic programs.
9 Simplecppis a package developed by Prof. Abhiram Ranade at IIT Bombay and the book on An Introductionto Programming through C++ by Prof. Abhiram Ranade uses Simplecpp to explain basic program-ming. For more information, please refer to the Chapter 1 of the book. Simplecpp is integrated withCode::Blocks and the Simplecpp programs are tested with Code::Blocks on Windows 7 and Ubuntu Code:: block IDECode:: block IDE is shown in figure 1 (Ubuntu ). The main parts of Code:: block along with figuresare discussed belowFigure 1: Code:: block IDE1 Ubuntu with intelR CoreTMi3-2120 CPU @ processor 4 GB RAM and 32-bit architecture and 64bit 7 with intelR CoreTMi3-2120 CPU @ processor 4 GB RAM and 32-bit bar:Menu bar is shown in figure 2.
10 Menu bar can be toggled using F10. Few important link in menubar are described below (described from left to right):Figure 2: Menu Bar(a) File:File menu link contains options to create a new project, open an already existing project,save file, save project, save workspace and save everything. It also contains options for closinga single file, closing a project or closing entire workspace. Other options in File are to print,export and quit the Code:: block (b) Edit:All the editing options required for editor are provided in Edit.(c) View:This menu link contains link for various perspectives and toolbars along with manager,logs, script console, status bar, full screen.(d) Project:Options related to the project is provided in this link which includes configuring buildoptions along with options for adding files, removing files and autoversioning of project.