CL: Error Output Not Redirected in Certain Cases in C 6.0

ID Number: Q61304

6.00

MS-DOS

buglist6.00 fixlist6.00a

Summary:

When using the C 6.0 CL command-line compiler under DOS with the

following options

/B1 C1L.EXE /Zi

the output is not redirected properly (using the DOS stdout redirect

">").

More Information:

The following code example reproduces the problem:

void main(void)

{

int i

}

Compile using the following command line (assuming you save the above

in a file called File.C):

cl /B1 C1L.EXE /Zi file.c > file.out

The above program contains an error at Line 3 (no semicolon), and the

following error should be generated and sent to the file FILE.OUT:

foo.c(4) : error C2059: syntax error : '}'

This error text never appears in the file FILE.OUT.

This problem can be worked around by omitting the /Zi option from the

command line, or omitting /B1 C1L.EXE.

Microsoft has confirmed this to be a problem in C version 6.0. This

problem was corrected in C version 6.0a.

Additional reference words: 6.00 6.00a