BUG: Incomplete pragma Directive May Cause C1001 ErrorLast reviewed: July 24, 1997Article ID: Q139028 |
The information in this article applies to:
SYMPTOMSWhen you use an incomplete #pragma preprocessor directive, the following internal compiler error may be generated:
warning C4081: expected '('; found 'newline' fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 899) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more informationWhile the code is not valid, the compiler should not generate an internal compiler error. However, the C4081 warning is valid.
RESOLUTIONUse a complete pragma directive. For a listing of valid pragma directives and their syntax, please consult the Help menu.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe #pragma directives that cause this problem are:
Sample Code to Demonstrate Problem
// Compile Options - none #pragma comment // the previous line is incomplete, // the following line is complete and won't cause the error: // #pragma comment(lib, "msvcrt.lib") |
Additional query words: 10.00 10.10 10.20
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |