Compile Programs in Multiple Files
If the whole program is stored in two separate files called main.c and p.c, we can compile them with
cc -c main.c
cc -c p.c
cc main.o p.o
Or in a single command
cc main.c p.c
With the UNIX command
man cc
look at the options available to the cc command.
Previous slide
Next slide
Back to first slide
View graphic version