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
- How to Solve Visual Studio C4996 Error
- 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.
- Solve the problem of VC 6.0 fatal error C1033: cannot open program database’.\debug\vc60.pdb’
- How to solve the problem that the output results of C + + program written in VS2010 flash by
- MySQL reports fatal error encoded during command execution. How to solve the error
- About how to solve the 8050800c error when Windows Update updates the definition of Windows Defender
- To solve the running error of eclipse for C / C + +: launch failed binary not found
- Error: unrecognized command line option “-std=c++11”, to solve the problem that ubuntu does not support c++11
- How to Solve apt get update problem: usr/lib/apt/methods/HTTPS could not be found_PUBKEY 7EA0A9C3F273FCD8
- Vs QT project ‘fatal error C1083:’ failed to open include file
- How to Fix Fatal Error lnk1120: 1 unresolved externals
- Solve the problem of error: cannot pass objects of non trivially copyable type ‘STD:: String’ in C / C + +
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error
- PHP:Fatal error: Class ‘COM’ not found in … How to deal with the problem
- Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- fatal error C1001: INTERNAL COMPILER ERROR