Compiling and Executing Programs in C under UNIX Suppose you have the file “main.c”. To compile this program, on the command line, type gcc main.c This will create an executable for you to run called “a.out”. To name the executable, type the following, gcc –o myprogram main. c Suppose you have more than one “c” file. For example, “main.c” and “list.c”. To compile
This is the end of the preview. Sign up
access the rest of the document.