in compiled VC++6.0 is, appears
fatal error C1010: unexpected end of file while looking for precompiled header directive
problem explanation in detail:
fatal error C1010, the file did not end as expected while looking for a precompiled indication header file. The header file where the precompiled indication information was not found.
problems generally occur in:
adds some CPP files to an MFC program by adding files, but the CPP file is not MFC, is standard C++.
solution 1:
, right-click the CPP file in the Project Project and set it to the first item: Not using preheaders, from the C++ Header on the Project Settings page.
solution 2:
Add the include file stdafx.h at the beginning of the.cpp file.
# include “stdafx. H”
from: MSDN
Visual C++ Concepts: Building A C/C++ Program
Fatal Error C1070
mismatched #if/#endif pair in file ‘filename‘
An #if, #ifdef, or #ifndef directive has no corresponding #endif. The following sample generates C1070:
// C1070.cpp
#define TEST
#ifdef TEST
// use the line below to resolve the error
// #endif
#ifdef TEST
#endif
int main() {
}
// C1070
Read More:
- Fatal error C1010: unexpected end of file encountered while looking for precompiled header. Did you forget to add “ා include” StdAfx. H to the source
- Fatal error C1853 error occurs when there are mixed .c files in the VS project
- Some small problems in using vs2017
- Configuring OpenGL in Chinese version of VS2010 and problem solving
- Solution of header file StdAfx. H “no such file or directory” in Visual Studio
- Error c2061: syntax error: identifier ‘this_ FILE’
- IntelliSense: unable to open source file ‘StdAfx. H’
- Gcc compiler warning solution: “extra tokens at end of ifndef directive” Tags: GCC, warning
- Solutions to several VTK compilation errors (vtk5.8 + VS2010)
- OpenGL development environment configuration [vs2017] + common problems
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Solution of unable to open source file “StdAfx. H” in vs2013 / 2012
- Error C2065 ‘cout’: undeclared identifier
- Solution of VS2008 unable to open GL / glaux. H header file
- Some problems and solutions in learning opengl in vs2017
- Error in header file when calling OpenGL to open obj file in vs2013: unable to open include file: “GL / glut. H”: no such file or directories
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- Analysis of the causes of errors in G + + compilation “was not declared in this scope”“
- Vs cannot open the source file unistd. H under Windows
- In VS2010, the compiler cannot open the file “GL / glaux. H”: no such file or directory