RSS
Follow Us
Contribute
 
 
 
 
Print Preferences

Fatal Error C1071: unexpected end of file found in comment

 

From $1

Table of contents
  1. 1. Cause
  2. 2. Solution
  3. 3. About This Article

Cause

The compiler reached the end of the file while scanning a comment. Possible causes are:

  1. Missing comment terminator (*/).

  2. Missing newline character after a comment on the last line of a source file.

int main() {
}

/* this comment is fine */
/* forgot the closing tag        // C1071

Solution

Provide the missing characters.

int main() {
}

/* this comment is fine */
/* this comment is fine */

About This Article

This article is a derivative work based on Fatal Error C1071 which is provided by MSDN Community Content - Visual C++.

 
 
 
 
 
Creative Commons License
All content is licensed under a Creative Commons Attribution-Noncommercial 3.0 License.
Powered by MindTouch Core v.9.02.2