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 scriptTo execute program, look at below
-$ ./scriptFor 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 myprogramAnd than, you must execution your script using this command at below
~$ ./myprogramOkay bro... it is very easy....
Thank's for your visit and comment please....
Happy !!
Comments
Post a Comment