zoukankan      html  css  js  c++  java
  • 【亲测】fatal error C1010: unexpected end of file while looking for precompiled head

    fatal error C1010: unexpected end of file解决方案

    在编译VC++6.0是,出现 fatal error C1010: unexpected end of file while looking for precompiled header directive

    问题详细解释: 致命错误C1010,在寻找预编译指示头文件时,文件未预期结束。就是没有找到预编译指示信息的头文件。

    问题一般发生在: 通过添加文件的方式,添加了一些cpp文件到一个MFC的程序,但该cpp文件并不是MFC,是标准C++的。

    解决方案1: 右键点击项目工程中的该cpp文件,在菜单Project 》Settings里C++页面的Precomplie Header,设置为第一项:Not using precompiled headers。(这种方式有时候会出现其他错误

    解决方案2: 在.cpp文件开头(一定要是最开头的地方)添加包含文件stdafx.h。 #include "stdafx.h"

  • 相关阅读:
    局域网中电脑之间无法ping通问题
    Python 字典dict操作定义
    set集合
    Python 元组遍历排序操作方法
    Python List 列表list()方法
    set函数&操作
    dict函数
    文件操作
    list函数
    字符串格式化format使用
  • 原文地址:https://www.cnblogs.com/aaronwxb/p/3079881.html
Copyright © 2011-2022 走看看