The information in this article applies to:
SYMPTOMS
The compiler generates error C2146 followed by C2065 and finally C2143,
all pointing to the same line in the source.
The problem is caused by the consecutive closing chevrons ">>" at the end
of the declaration.
RESOLUTIONThe solution is to put a space between the consecutive >>, so the above code becomes:
This is not a compiler bug. The language specification requires the space
between the two “>”; otherwise, the lexical parser generates the token
“>>”, which is the largest possible token.
Sample Code
Additional query words:
Keywords : kbCompiler kbCPPonly kbVC400 kbVC410 kbVC420 kbVC500 kbVC600 |
Last Reviewed: July 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |