INF: LINK Environment Variable Ignored When Linking Through CL

ID Number: Q47503

5.00 5.10 | 5.10

MS-DOS | OS/2

Summary:

When using the Microsoft C Compiler versions 5.0 and 5.1, and the

Microsoft QuickC compiler versions 1.0 and 1.01, setting an

environment variable called LINK equal to any linker switch(es) will

have no effect when compiling.

More Information:

Before CL spawns the linker, it clears the environment of all

variables except LIB. Consequently, the LINK environment variable

doesn't exist when the linker is invoked, and any options that were

specified by it are not seen. When linking with CL, any desired linker

options should be specified on the CL command line after the /link

switch.

This behavior was corrected in C version 6.0 and QuickC version 2.0.

Additional reference words: 5.00 5.10 1.00 2.00 6.00