The software that I'll be using during this course is Atom (with the gpp-compiler package installed) and MinGW on Windows. I'll be showing you how to set up and use these, as well as how to compile your programs on a Raspberry Pi if you want to (HINT: everything you need is already installed).

Transcript

So, let's now set up our computer so we can write our C programs. So, what you're gonna need to do is go on to the guide for this video and I have some links to where you can get the software. First of all, we'll need to get Atom, which is going to be a text editor. All you need to do is click download it automatically detects that you need for Windows, wait for it to download and then you can run it and that's it, it installs by itself. So, once it's installed and it will open up by itself and all you need to do for the moment is just minimize it and we'll come back to it later. The next thing you'll need is MinGW which is going to be our compiler. So open up that link on the right-hand side there is a download installer button, click that wait for the download to finish and then we can run that too. So, first you'll see the License Agreement just click install now you can change where you want to install it to but I'm going to leave it as the default. Click continue and wait for it to download.  So now that it's downloaded, just click continue and it will open up the installer for you now all you need to do is select the check mark next to MinGW 32 - base, left click that and click mark for installation then go to the installation menu at the top and click apply changes. It will tell you which packages need to be installed just click apply and now we just need to wait while the packages are installing if all goes well you will see that all changes were applied successfully we can just click close and then we can close the Installer. What you need to do now is open up Atom and we'll go to file, settings, we will go down to install and we will search for GPP-compiler, press ENTER to search and what we need to do is click the install button next to the GPP compiler just wait for that to install and we should be good. Great, so now that's installed when we go to read our C programs, all we have to do is hit the Run button and it will work if you want to use a Raspberry Pi things are much simpler as all the tools are already installed for you. All you need to do is go up to the menu, go to programming and go to Genie and now when you want to run your C programs, all you need to do is click the Run button at the top and it will run exactly the same way that Atom will. So let's get on to making our first program. So, the last step with MinGW is we need to change our setting in Windows, go to the Start menu and what you need to look for is edit environment variables for your account, press Enter. Go to the path variable in the top box click Edit, go up to new, click that and then click browse. What we're going to look for is the installed location for our MinGW and inside that will be a bin folder, click the bin folder, click OK, click OK, two more times and that's all.

Comments


Loading...
Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.