Students who are bound to do some programming and people who love programming but uses Linux Mint or Ubuntu does not get the Turbo C/C++, Borland C++, Code Block etc software.
Dont worry I'll give you two ways of installing C++ compiler in Ubuntu and Linux mint (Online and Offline). For C++ programs you can use G++ compiler an advanced compiler with lot of features.
To install G++ type following command at command line.
sudo apt-get install g++
But this does not include the library files. So you better use the offline installer files.
First of you better download all three files
Though all of them are debian files don't get excited and double click all of them. install them through terminal to get perfect result.
1> Go to Terminal
2> Go to the destination folder(where the files are currently present now).
[ like if you have kept them in a folder called g++ at desktop then type "cd Desktop" and to reach g++ type "cd g++". So now you are in g++ folder.]
3> Type and enter(One by one). if it asks for administrator password provide it:
sudo dpkg -i g++-4.7_4.7.2-2ubuntu1_i386.deb
sudo dpkg -i g++_4_3a4.7.2-1ubuntu2_i386.deb
sudo dpkg -i libstdc++6-4.7-dev_4.7.2-2ubuntu1_i386.deb
Now you are ready to use C++ in your Linux Mint or Ubuntu.
In next part I will give a small demo about how to use this C++ compiler as there are no code box to write into like windows to before execution. See you in next part.
NB: during installation it may show that there are errors, don't worry they are perfectly installed. Chill.
Copied from : http://techntoday.blogspot.com/2013/01/c-compiler-for-linux-mint-ubuntu-g.html
For more tips and tricks visit - Technology Today
« Last Edit: February 06, 2013, 03:11:46 AM by rupaly_guiter »
I kn0w,I maY n0t b perfect !!
BuT u cant get the sec0nd uniQue 0ne like me ...!! Technology Today