C Programming Tutorial 2 – Installing GCC

In order to get started programming with C, we need to have an operating system to work on.

Now, in order to be on the same page, I highly recommend being on a UNIX or Linux operating system. An operating system is a big piece of software that is always running on your computer. It’s what allows you to open apps, type, print, and use anything on your computer.

Mac is an example of a UNIX operating system. Windows on the other hand, is not. If you are in Microsoft Windows, you can actually get a copy of a Linux operating system to install absolutely free. Here is a video I made on how to install Linux as a virtual machine: https://www.youtube.com/edit?o=U&video_id=qOTN2zXeVyU

Now, don’t get me wrong, if you want to use windows, that’s fine. You can use windows, but it is a bit more work to get everything set up and not everything is the same as will be in these tutorials. Personally, I think it is helpful to familiarize yourself with Linux.

Open the terminal. We are going to try to get comfortable using the terminal. That’s because it is very universal. Every UNIX operating system will use the same commands. Another reason is that you’re not always going to be able to do everything visually. For example, if you access a computer remotely or if you are writing scripts.

Now, the very first thing we need to install is a compiler. The compiler we are going to be using is called GCC.

To do this all we have to do is type gcc in the terminal. Mac is going to prompt us if we would like to install Developer Tools. Select Install. This is going to install GCC. GCC is the tool that will take our C code and compile that down to the appropriate machine code that can then be ran by the computer.

Now, another tool we are going to use is called VIM. This is a text editor that we are going to familiarize ourselves with. You guys are more than welcome to use another text editor, but once again the benefits of VIM is that you are going to be able to find it everywhere.

To use VIM, type vim followed by a file that you want to create.

vim hello.c

Now, VIM is going to seem a bit strange at first and honestly it might cause some frustration, so take it easy. The first thing that is probably going to drive you crazy is “how the crap do you close this program?” The trick to closing the program is to type :q.

Now we have all of the tools we are going to need to get started working with C. That was simple! In the next video we are going to be writing our first program.


Support me! http://www.patreon.com/calebcurry

Subscribe to my newsletter: http://eepurl.com/-8qtH

Donate!: http://bit.ly/DonateCTVM2.

~~~~~~~~~~~~~~~Additional Links~~~~~~~~~~~~~~~

More content: http://CalebCurry.com
Facebook: http://www.facebook.com/CalebTheVideoMaker
Google+: https://plus.google.com/+CalebTheVideoMaker2
Twitter: http://twitter.com/calebCurry

Amazing Web Hosting – https://www.dreamhost.com/r.cgi?1487063 (The best web hosting for a cheap price!)


Tyler Eldridge says:

I really don’t understand how you don’t have several hundred thousand views

Mohamed Samir591195 says:

i want to thank you because i’m egyptian and not good in english to understand without english subtitles but here ican understand you without it !1

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles   Show Cars   Motorbikes   Scooters   Rims & Tires   Luxury BoatsFashion   Sunglasses   Luxury Watches   Luxury Purses   Jeans Wear   High Heels   Perfumes   Jewellery   Cosmetics   Shaving Helpers   Fashion HatsFooding   Chef Club   Fooding Helpers   Coktails & LiquorsSports   Sport Shoes   Fitness & Detox   Golf Gear   Racquets   Diving Equipment   Ski Gear   Snowboards   Surf Boards   Rollers & SkatesEntertainment   DIY Guides   Zik Instruments   Published Books   Music Albums   Cine Movies   Trading Helpers   Make Money   Fishing Equipment   Paintball Supplies   Trading Card Games   Telescopes   Knives   VapesHigh Tech   Flat Screens   Tech Devices   Camera Lenses   Printers   USB Devices   PC Hardware   Network Gear   Cloud Servers   Software Helpers   Programmer Helpers   Mobile Apps   Hearing AidsHome   Home Furniture   Home Appliances   Beddings   Floor Layings   Barbecues   Aquarium Gear   Safe Boxes   Office Supplies   Security Locks   Cleaning ProductsKids   Baby Strollers   Child Car Seats   Remote ControlledTravel   Luggages & Bags   Airlines Seats   Hotel Rooms   Fun Trips   Cruise Ships   Mexico Tours