1.1.38 $L or $LINK : Link object le

The f$L filenameg or f$LINK filenameg directive tells the compiler that the le lename should be linked to the program. This cannot be used for libraries, see section section 1.1.39, page 96 for that.

The compiler will look for this le in the following way:

  1. It will look in the path specied in the object le name.
  2. It will look in the directory where the current source le is.
  3. it will look in all directories specied in the object le search path.

Directories can be added to the object le search path with the -Fo option.

On linux systems and on operating systems with case-sensitive lesystems (such as unix systems), the name is case sensitive, and must be typed exactly as it appears on your system.

Remark:Take care that the object le you're linking is in a format the linker understands. Which format this is, depends on the platform you're on. Typing ld or ld --help on the command line gives a list of formats ld knows about.

Other les and options can be passed to the linker using the -k command-line option. More than one of these options can be used, and they will be passed to the linker, in the order that they were specied on the command line, just before the names of the object les that must be linked.