

You should see some compilation errors due to the incomplete statement. Save this and click the Build button (the blue gear) to attempt compilation. Change the function to look like this: #include

Let’s make some changes before compiling this. Double-click this to open it in the editor. If you open the Sources folder, you can see that it has already created a basic main.cpp file for you. On the left you can now see your project structure. Give the project the title ”FirstProject“, click on the ”…" button to choose a place in which to save your work.Īccept the rest of the defaults until the wizard closes.

Move through the Wizard, choosing C++ as the language.

Select “File->Project… Select ”Console Application“ and click ”Go“. Let’s start out with a very simple project. If this is the first time you have run it, it may try to locate compilers it can work with. The downloads without the “mingw” in the file name assume that you already have a compiler installed on your PC.įor MacOS and Linux, you will need to already have a compiler installed. The “mingw” versions include a C++ compiler. You can download it here.įor Windows, Code::Blocks comes in two varieties. 1.2 Installing on your own PCĬode::Blocks is free software and runs under Windows, MacOS, and Linux. This connects you to a Microsoft Windows machine that will run Code::Blocks.Įven if you are able to the use Virtual Computing Lab, however, you may actually find it more convenient to install your own copy of Code::Blocks.
