FIX: D2004 Caused by /Tp or /Tc Option in Visual C++ 4.0Last reviewed: September 19, 1997Article ID: Q142421 |
4.00
WINDOWS NT
kbtool kbbuglist kbfixlist
The information in this article applies to:
SYMPTOMSIf the /Tp or /Tc compiler option is used in a project built within the Developer Studio, one of the following errors occurs:
Command line error D2004 : '/Tp' requires an argument -or- Command line error D2004 : '/Tc' requires an argument RESOLUTIONTo work around the problem:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Visual C++ 4.1.
MORE INFORMATIONThe /Tc option specifies that the file is a C source file, even if it doesn't have a .c extension. The /Tp option specifies that the file is a C++ source file, even if it doesn't have a .cpp or .cxx extension. These options worked for projects built within the Visual C++ 2.x environment. If you convert a project from version 2.x to 4.0 that has these options, you will get the previously described error.
|
Additional reference words: 4.00 4.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |