PRB: C 6.0 STARTUP.DOC Requests Wrong MASM Version

ID Number: Q63321

6.00 | 6.00

MS-DOS | OS/2

docerr

Summary:

SYMTPOMS

The Microsoft C version 6.0 STARTUP.DOC, under the "C Runtime

Library Startup Sources" section, states that in order to build the

start-up object files, MASM version 5.0 or later is required.

However, when using MASM 5.0, the following error is produced:

A2009: symbol not defined: @F

RESOLUTION

The best way to resolve this error is to use MASM version 5.1 or

later. If this is not possible, use MASM 5.0 with the following

modifications.

Two lines in CRT0DAT.ASM must be changed. Lines 701 and 703, which

involve a jump to @F, should be changed as demonstrated below.

Also, the makefile that comes with C 6.0 cannot be used because

additional errors will be produced. It is best to look into the

makefile to determine which compiler and assembler options are

needed for _FILE.C and CRT0DAT.ASM, and then run them from the

command line.

C/C++ version 7.0 requires MASM 6.0 ro reassemble the startup code.

More Information:

Sample Code

-----------

Line 701: jne @F (jump forward to @F)

should read jne BOO (where boo is any symbol

other than @F)

Line 703: @@:

should read BOO:

This problem does not occur when using MASM version 5.1 or later.

Additional reference words: 5.10 6.00 7.00