PRB: Object Files Are Not Created in the Proper Directory

ID Number: Q68892

6.00 6.00a 6.00ax | 6.00 6.00a

MS-DOS | OS/2

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

Summary:

SYMPTOMS

In Microsoft C versions 6.0, 6.0a, and 6.0ax, object files will not

be created in a requested directory if all the following conditions

are met:

- The /Fo<path> option is used to specify the target directory.

- More than one file is compiled at the same time.

- An error occurs in the first file compiled.

The following is an example of a command line that causes this

problem:

cl /c /Fo\objs\ *.c

CAUSE

If an error occurs in the first file that is compiled, the path

specified in the /Fo option will not be passed to pass 3 of the

compiler. The compilation will complete as normal, but all object

files will be placed in the same directory as the source files. If

an error occurs in any file other than the first one, the path will

be passed properly, and all object files will be placed in the

desired directory.

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.

Additional reference words: 6.00 6.00a 6.00ax