"Unexpected end of file while looking for precompiled header direve ve" often occurs in VC ++ 6.0?
22:07:06 | category:
C ++ | label: C ++
| Large font size, medium/small subscription
How to solve the "unexpected end of file while looking for precompiled header directive" problem that often occurs in "Fatal error c1010: VC ++ 6.0?
I think you often encounter this problem in vc6.0. How can this problem be solved?
1. Check whether ";", "}" is missing.
What hides deep is the problem of macro and. H files.
2. You must have deleted some of the class definitions. M $ defines some special constants in each class, which are paired as follows:
. H:
# If! Defined (afx_childfrm_h000054ca89dd_ba94_11d4_94d7_0010b503c2ea00000000ded _)
# Define afx_childfrm_h000054ca89dd_ba94_11d4_94d7_0010b503c2ea00000000ded _
.......
// {Afx_insert_location }}
// Microsoft Visual C ++ will insert additional declarations immediately before the previous line.
# Endif //! Defined (afx_mainfrm_h000054ca89db_ba94_11d4_94d7_0010b503c2ea00000000ded _)
You can create a new class and copy or complete the class.
3. Add # include "stdafx. H" to the header"
4. Add # include "stdafx. H" to the first line of the CPP file ".
Or rebuild all.
5,
(1). [project]-[settings]-[C/C ++]-[category]
(2) select [precomplied headers]
(3). single choice [not using precomplied headers]
(4). [OK]