Everything
2.3 Environment Variable

This section explains the environment variables.

The environment variables of the optimizing linker and the examples when specifying them on the command line are shown below.

 

-

HLNK_LIBRARY1, HLNK_LIBRARY2, HLNK_LIBRARY3

Specify the default library that the optimizing linker uses.

The library specified by the -library option has the precedence for linking.

After that, if unresolved symbols remain, default libraries HLNK_LIBRARY1, HLNK_LIBRARY2, and HLNK_LIBRARY3 are searched in that order.

Example

>set HLNK_LIBRARY1=usr1.lib
>set HLNK_LIBRARY2=usr2.lib
>set HLNK_LIBRARY3=usr3.lib

 

-

HLNK_TMP

Specify the folder where the optimizing linker creates temporary files.

If this environment variable is not specified, the files are created in the current folder.

Example

>set HLNK_TMP=D:\workspace\tmp

 

-

HLNK_DIR

Specify the folder where the input files for the optimizing linker are stored.

The files specified by the -input and -library options are searched from the current folder and the folder specified by HLNK_DIR in that order.

However, the files specified with wildcard characters are searched in the current folder.

Example

>set HLNK_DIR=D:\workspace\obj1;D:\workspace\obj2