donderdag 3 februari 2011

Installing g++

G++ is a compiler for C++. I wanted to install this because I wanted to learn the basics of C++ and so I need a compiler to compile my "Hello World" program.

Installing G++ can be a pain in the ass though. I've found this out on several forum after failing to do it on my own. Several people advised to install the package 'build-essentials' because it included G++ and didn't give problems installing. I didn't want to install 'build-essentials' though so I kept on looking for a solution.

Eventually I found out that
$sudo aptitude update && sudo aptitude install g++
worked for me. So apparently I just had to update to make it work.

And another useful command is:
$dpkg -s
this will tell you whether your package is installed.

Geen opmerkingen:

Een reactie posten