ID Number: Q68835
5.10 6.00 6.00a 6.00ax 7.00 | 5.10 6.00 6.00a
MS-DOS | OS/2
Summary:
SYMPTOMS
In Microsoft C versions 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version 7.0
if your program prints out your filename after you type in the
following:
cl filename.c
and then returns to the command prompt without creating an
executable file, there may be duplicate compiler filenames. Within
the Programmer's WorkBench (PWB), it will indicate that there are
no warnings or errors after rebuilding, but the compiler will not
create an executable file.
CAUSE
The C compiler is a three-pass compiler, and invokes the files
C1.EXE, C2.EXE, and C3.EXE for C versions 5.1, 6.0, 6.0a, and
6.0ax, and C13216.EXE, C23216.EXE, and C33216.EXE for C/C++ version
7.0. If there are any other files with these names on the path
before the compiler, then the compiler may incorrectly execute the
wrong file.
RESOLUTION
There is a compiler switch that will enable you to print out which
files are being invoked during each pass of the compiler. To
implement this switch, enter the following:
cl /d filename.c
Additional reference words: 5.10 6.00 6.00a 6.00ax