Presentation is loading. Please wait.

Presentation is loading. Please wait.

Download and Installation of code::blocks

Similar presentations


Presentation on theme: "Download and Installation of code::blocks"— Presentation transcript:

1 Download and Installation of code::blocks
02/2017

2 Installation occurs in Two Parts
Download and installation of the compiler (gnu gcc) Download and installation of code::blocks IDE.

3 Download and Installation of gnu gcc compiler
Go to the following web site:

4 If necessary open the Setup file
In your download folder you should see the following file: mingw-get-setup The download of the Set-Up Manager might take several minutes If the download does not Execute automatically – go to your download folder and double click on the file name. View the license and Submit your Request Use the Recommended Settings

5 When the set-up file is opened
Select the four packages indicated After selecting the Packages to the Right (red) – click on “Installation” above.

6 The Installation Manager screen will appear – click on <Continue> (if necessary)
The process should continue with out further intervention.

7 Download and Installation of code::blocks
This is the easy part. Go to the following site:

8 Download and Installation of code::blocks
Click on “Download the binary release”

9 Select Download At this point the package to be downloaded must be selected. Scroll down to your computer platform.

10 Select the Installation Package
If the package does not open automatically, go to the Download folder and double click on the file and follow instructions.

11 After the gcc and IDE have been installed
1. Open the Code::Blocks IDE 2. Click on Create a new project 3. Double click on “Console application” → Click “Next” 4. Type in a Project title. Something like “temp” and click on “Next” 5. The left window will display the project structure. Double click on “Sources” and once again on “main.cpp”. You are now at the edit screen for the programming project. This is where we spend most of our time.

12 After the gcc and IDE have been installed
5. The left window will display the project structure. Double click on “Sources” and once again on “main.cpp”. You are now at the edit screen for the programming project. This is where we spend most of our time.

13 After the gcc and IDE have been installed (continued)
6. Now to connect the GCC tools to the IDE (refer to next slide for graphic). a. In the menu at the top, find “Settings” (next to “Help”). Click on this option. At this point in the “Compiler:” box you should see “GNU GCC Compiler”. If not click the down arrow to the right and select “GNU GCC Compiler” from the list. Click on “Finish”. b. Now select “Compiler...”. Now find “Toolchain executables” and click on it. c. This is important! Look at the “Compiler’s installation directory”. It should read: “C:|Program Files (x86)\CodeBlocks\MinGW”. It should be exactly like this including the spaces. Other wise the IDE will not be able to find the compiler! Then click on “OK” at the bottom of the screen.

14 After the gcc and IDE have been installed (continued)
The Final Step before checking everything

15 After the gcc and IDE have been installed (continued)
Do this then

16 After the gcc and IDE have been installed (continued)
7. Now for the test. You should be looking at the default “Hello world” program. Put your cursor to the right of the semicolon after “endl;”. Type the following: “cin.get();”, without the quote marks. Now to debug, compile, and run the program. Click on “Debug” then on “Start/Continue”. You should see a black screen with “Hello world!” written in the upper left corner.

17 After the gcc and IDE have been installed (continued)
Now to check – add the code indicated then click “Debug” and The “Start/Continue” option.


Download ppt "Download and Installation of code::blocks"

Similar presentations


Ads by Google