Easy Compile C within Linux Using GCC



Hello bro... Now, I will share how to compile C within linux. If you want to compile C on linux, that very easy, because only using GCC (GNU Compiler Collection). The GCC is available on Linux OS. Just using Linux Shell (Terminal), you can compile your C script us easy.

Below is the command to compile C using GCC
~$ gcc script.c -o script
To execute program, look at below
-$ ./script
For example, you have a script C, and than the name of your script is myprogram.c,  so you can compile your script using this command at below.
~$ gcc myprogram.c -o myprogram
And than, you must execution your script using this command at below
~$ ./myprogram
Okay bro... it is very easy.... 
Thank's for your visit and  comment please....
Happy Paper 4Share !!

loading...