Assembler Options Passed to C Compiler If /MA Contains Space

ID Number: Q61602

6.00 6.00a 6.00ax | 6.00 6.00a

MS-DOS | OS/2

buglist6.00 buglist6.00a buglist6.00ax fixlist7.00

Summary:

SYMPTOMS

Beginning with C version 6.0, assembler options can be passed from

the C compiler to MASM by using the /MA switch; however, if the

option has a space between the /MA and the actual option, the option

will be passed to the compiler instead of the assembler. For the

switch to be passed to the assembler, there cannot be a space in the

option. If there is a space separating the /MA option from the MASM

option, the following error will be generated:

warning D4002: ignoring unknown flag '-MA'

The following is an example of the option that will generate the

above error:

/MA DEBUG

RESOLUTION

To work correctly, the option should be specified as follows:

/MADEBUG

STATUS

Microsoft has confirmed this to be a problem in C versions 6.0,

6.0a, and 6.0ax. This problem was corrected in C/C++ version 7.0.

In C/C++ version 7.0, a "Missing args" warning will be generated.