In this video I'll show how you can compile your C program in Linux using gcc compiler. Using GCC with Cygwin. The only difference is that you use gcc -mwindows to link your program into a GUI application instead of a command. How. To Compiling C Program And Creating Executable File Under a Linux / UNIX / *BSDHow do I compile C program and create an executable file under Linux or UNIX operating systems? You need GNU project C and C++ compiler for compiling C program and creating an executable file. Most Unix and Linux (*BSD) user start compiling their C program by the name cc.
But you can use gcc command to compile program. First make sure you have gcc C compiler installed: Make Sure Compiler Is Installed On a Unix- like System. Type the following command to verify that gcc is installed: which gcc. Sample outputs: /usr/bin/gcc. Find out version of gcc, run: $ gcc - -version. Sample outpust: gcc (GCC) 4. Debian 4. 0. 2- 9). Copyright (C) 2. 00. Free Software Foundation, Inc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2017
Categories |