[cs631apue] Compiling multiple .c files

mseaton mseaton at stevens.edu
Thu Sep 22 20:00:36 EDT 2016


Hello,

I have created several source files for our ls assignment. The lc.c file 
links all the other source files and header files. Compiling all files 
together works fine, when compiling the source files individually, I get 
errors where the compiler is complaining that their is no main function. 
My understanding is, we should be able to compile source files 
individually without a main method, but we cannot run a source file 
without one.

Am I correct or am I missing something?

Marlon


More information about the cs631apue mailing list