"Unexpected end of file while looking for precompiled header direve ve" often occurs in VC ++ 6.0?

Source: Internet
Author: User
"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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.