The GCC compiler is written by Richard Stallman, the great installer and installed by default on GNU / Linux operating systems. This compiler is very powerful but does not have a graphical environment and it has to compile and execute the code through the command line! If GNU / Linux requires a professional IDE for ++ C and C, eclipce can be a compelling compiler for you.
$ sudo apt-get install gcc build-essential
If your operating system is based on your Linux or UNIX devices, you can verify the existence of the GCC (installed on your computer) by calling the command at the command prompt.
$ g++ -v
After installing and ensuring the presence of GCC on your system, the following message is displayed in the display:
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr .......
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
چنانچه GCC بر روی دستگاه نصب نشده باشد، در آن صورت بایستی کامپایلر مورد نظر را خود به صورت دستی بر اساس دستور العمل های عنوان شده تحت آدرس https://gcc.gnu.org/install/ نصب نمایید
sooooo seee this
https://askubuntu.com/questions/271388/how-to-install-gcc-4-8