Lahey/GNU Fortran

-libpath dir1[;dir2 ...]

Library Path

Link only. Default: current directory.

GFortran option: -L

The -libpath option allows specification of one or more directories to be searched for libraries. Note that all necessary library files must still be called out in the command line.

Example

LGF main.obj -libpath d:\mylibs -lib mine.a

This is equivalent to: LGF main.obj -lib d:\mylibs\mine.a

See Also

Linking Libraries