Lahey/GNU Fortran

-lib filename


Link only. Default: none.

GFortran option: -l

The -lib option allows specification of a library to be searched for references when linking. If filename does not exist, "libfilename.a" will be assumed.


LGF main.obj -lib mine.a

The library mine.a or libmine.a will be searched by the linker.

See Also

Linking Libraries