RSS
Follow Us
Contribute
 
 
 
 

Fatal Error C1071: unexpected end of file found in comment

 
We need YOUR SKILLS in this collaborative work, to build the largest solution center for error messages.

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++.

 
 
 
 
Comments