The information in this article applies to:
SYMPTOMSCompiling the sample code shown below using the C/C++ compilers for MS-DOS versions 7.0, 8.0, and 8.0c, or the C/C++ 32-bit compiler for Windows NT, version 8.0, causes the compiler to generate one of the following error messages:
-or- The error message usually is generated when the program tries to instantiate a local constant object of a class that is virtually derived from a base class in which a user-defined destructor is defined. RESOLUTION
To alleviate the C2662 error, use one of the following workarounds:
-or- -or- -or- -or- STATUSMicrosoft has confirmed this to be a problem in the products and versions listed above. This problem was corrected in C/C++ compiler version 9.0, included with Visual C++ 32-bit Edition, version 2.0. MORE INFORMATIONThe following sample code can be used to demonstrate the problem: Sample Code
Additional query words: 1.00 1.50 7.00 8.00 8.00c
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |