197. Create an executable in one step by compiling all source files or by compiling source files with -c and linking the object files.#

topic: Compiling

Note

This tip is a draft1.

A program containing a module and main program is compiled with g95 as

g95 m.f90 main.f90

or with separate compilation

create m.o and main.o with the -c option#

g95 -c m.f90 g95 -c main.f90