How to Install a C/C++ compiler in Ubuntu 14.04LTS? [duplicate]
install compiler(s)
-
C and C++ and make etc.
sudo apt-get install build-essential
-
Fortran
sudo apt-get install gfortran g77
to edit source code
use any texteditor. From the graphical user interface for example use kate
. From the commandline use nano
:
nano main.cpp
to compile
g++ main.cpp -o main