PRB: /MAP Option on Compiler Command Line IgnoredLast reviewed: November 2, 1995Article ID: Q93914 |
The information in this article applies to:
The Microsoft C/C++ Compiler (CL.EXE) included with: - Microsoft C for MS-DOS, versions 6.0, 6.0a, and 6.0ax - Microsoft C for OS/2, versions 6.0 and 6.0a - Microsoft C/C++ for MS-DOS, version 7.0 - Microsoft Visual C++ for Windows, versions 1.0 and 1.5
SYMPTOMSIn the Microsoft C and Microsoft QuickC compilers for MS-DOS, when the command line specifies both the /LINK and /MAP option switches, the compiler ignores the /MAP option. The Microsoft C/C++ compiler for Windows NT does not have this problem because the supplied linker does not require comma delimited fields for the input.
CAUSEThe compiler places the /MAP switch on the linker command line after the map file specification.
RESOLUTIONUse the /Fm compiler option switch to create a map file.
MORE INFORMATIONTo demonstrate this behavior with the MS-DOS version of the compiler, perform the following three steps:
Sample Code
/* * Compiler options needed: /Fm or /link /MAP (see above) */ #include <stdio.h> void main(void){ int x; printf("Hello world\n");}
|
Additional reference words: 1.00 1.50 6.00 6.00a 6.00ax 7.00 8.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |