Compile C in Mainframe
Compile C in Mainframe
First log in to unixlab.sfsu.edu. Then create your programming logic and at last in order
for you to compile your Ansi C program, you must type the following command:
gcc lm filename.c
<CR>
The above command will compile your Ansi C program on our university main frame and
if no errors it will put the executable file into ./a.out.
Here are the instructions from the web page I sent you the link to. If you look at step
five or step six you will see that you need to specify an output file name using the "o" switch. Using your example your command needs to be: