INFO: Compiler Looks for LINK.EXE in CL.EXE Directory First

ID: Q103787


The information in this article applies to:
  • The Microsoft C/C++ Compiler (CL.EXE)
    • Microsoft C for MS-DOS, version 6.0a
    • Microsoft C for OS/2, versions 6.0, 6.0a
    • Microsoft C/C++ for MS-DOS, version 7.0
    • Microsoft Visual C++ for Windows, 16-bit edition, versions 1.0, 1.5
    • Microsoft Visual C++, 32-bit Editions, versions 1.0, 2.0, 2.1, 2.2, 4.0, 4.1, 5.0, 6.0


SUMMARY

When using the Microsoft compilers listed above, and the linker is called by the compiler (no /c option specified), the first directory in which the compiler searches for LINK.EXE after looking in the current directory is the directory that CL.EXE was found in. If LINK.EXE is not found in the same directory as CL.EXE, then the directories specified by the PATH environment variable are searched.

Additional query words: 8.00 8.00c 9.00

Keywords : kbCompiler kbVC100 kbVC150 kbVC200 kbVC210 kbVC220 kbVC400 kbVC410 kbVC500 kbVC600
Version :
Platform : WINDOWS winnt
Issue type : kbinfo


Last Reviewed: December 23, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.