C and c Are Illegal Symbols in MASM 5.10 and 5.10a

ID Number: Q66497

5.10 5.10a | 5.10 5.10a

MS-DOS | OS/2

Summary:

If you assemble the code below with the Microsoft Macro Assembler

version 5.10 or 5.10a, the following error is generated:

error A2009: Symbol not defined:

This error occurs because "c" or "C" can be used in your .MODEL

statement to identify that you are doing mixed-language programming

with C. This process makes C a reserved symbol, and therefore it

cannot be used in your program.

This behavior is by design and is not considered a problem with the

Microsoft Macro Assembler.

Code Example

------------

public c

c PROC FAR

c ENDP

end

Workaround

----------

Change "c" or "C" to something else.