{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

gccUnix - Compiling and Executing Programs in C under UNIX...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Ask a homework question - tutors are online