Linking multi-language programs
Compile object files from the source files of each language separately by using the -c option
- % cc -c more.c rest.c
- % f77 -c main.f
Use the compiler associated with the language of the main program to link the objects:
- % f77 main.o more.o rest.o