KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q61613: /Lp, /Lr, and /Lc Functions Are Documented Incorrectly

Article: Q61613
Product(s): See article
Version(s): 6.00   | 6.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | docerr | mspl13_c
Last Modified: 29-MAY-1990

In Section 14.2.1, "The Link Mode Options /Lp, /Lr, and /Lc," on Page
353 of the "Microsoft C Advanced Programming Techniques" manual, it
incorrectly states the following:

   When you use the /Lx options, you instruct the compiler to override
   the default library name in the object module's library search
   record and to substitute the mode-specific combined library name.

The correct function of the /Lx options is to simply change the
library options that CL sends to the linker.

For instance, if you call CL.EXE with /Lr, the following link options
will be passed to the linker:

   /NOD:xLIBCE.LIB xLIBCER.LIB

Note that "x" is a letter indicating the memory model. The /Lx options
have no effect on the compiler portion of the CL program.

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.