### 15.1.2 ALIAS Directive

The ALIAS directive lets you specify an alternate external name to be used when referring to external subprograms. This can be useful when compiling applications written for other platforms that have different naming conventions.

The ALIAS directive takes the following form:

  cDEC$ ALIAS internal-name, external-name
  c
  Is one of the following: C (or c), !, or * (see Section 15.1.1).
  internal-name
  Is the name of the subprogram as used in the current program unit.
  external-name
  Is a name, or a character constant delimited by apostrophes or quotation marks.

  If a name is specified, the name (in uppercase) is used as the external name for the specified internal-name. If a character constant is specified, it is used as is; the string is not changed to uppercase, nor are blanks removed.

The ALIAS directive affects only the external name used for references to the specified internal-name.

Names that are not acceptable to the linker will cause link-time errors.

For More Information:

- On syntax rules for all general directives, see Section 15.1.1.
- On the linker for OpenVMS systems, see the OpenVMS Linker Utility Manual; for Tru64 UNIX systems, see `ld(1)`; for WNT and W9* systems, see the online help on the linker.

Previous Page Next Page Table of Contents