Step 1: Setting up the C/C++ enviroment

By | 2013/08/20

Ok, so going forward with C or C++, the compiler of my choice is definitely the GNU Compiler Collection – short GCC. It is free and available across several platforms, including Microsoft Windows Operating System. But since developing under Linux (in my case Ubutu) simply makes more fun, this article will cover how to install the GCC, some tools we might use later.

First things first – the compiler and the tools:

root@jvr.at:/home/jvr# apt-get install gcc autotools cvs svn

So, while the gcc package contains mentioned compiler collection the autotools provides an according build system, which will be helpful later on, when we will create dependencies and links between several files, where a little helper is always welcome. CVS as well as SVN we will use for versioning and keeping track of our changes.

The editor – the ultimate question. There are hundreds of editors available – simple ones as well as the fancy ones with hundreds of plugins and extensions blowing up you machine and your mind. My personal favorite is vim [3], as it is easy to use within the console, and therefore also remotely – e.g. via the web-browser [4].

root@jvr.at:/home/jvr# apt-get install vim

But please feel free to choose as I do not want to be involved in any kind of editor war [5].

 

So now we should be equipped to start of developing in C/C++.

 

[1] Wikipedia, The GNU Compiler Collection – GCC

[2] GNU, The GNU Build System – Autotools

[3] Vim, the editor

[4] jvr.at, Ajaxterm – ssh access via the web-browser

[5] Wikipedia, The Editor War

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.