Error C2065 Example 2: undeclared identifier
Description:
An undeclared identifier error, error C2065, implies that there is no declaration for the particular item. However, this example shows that this error can be caused by mistyping a '1' (the number one) instead of an 'l' (lowercase L) in the word 'endl'. This is a very common mistake and is sometimes hard to see because of the visual similarity of the characters.
Code with Errors:
Compiler Error Message:
1>------ Build started: Project: myproj, Configuration: Debug Win32 ------ 1> main.cpp 1>c:\xoax.net\myproj\myproj\main.cpp(5): error C2039: 'end1' : is not a member of 'std' 1>c:\xoax.net\myproj\myproj\main.cpp(5): error C2065: 'end1' : undeclared identifier ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Fixed Code:
Output:
