zoukankan      html  css  js  c++  java
  • VC错误:编译程序中出现“fatal error C1010: unexpected end of file”

    编译程序中出现“fatal error C1010: unexpected end of file”

    编号:QA002308
    建立日期: 1999年12月24日 最后修改日期:2003年6月22日
    所属类别:

    C/C++ - 错误信息

    Q qjwn:
        操作系统:win98
        编程工具:vc++
        问题:我在编译程序中老出现“fatal error C1010: unexpected end of file while looking for precompiled header directive”这一句,但我查看了程序并没有错,请问这是怎么一回事?

    A回答:

        肯定是一个新添加的类的.cpp文件开头没包含stdafx.h,在该文件最前面加上即可。
        
        BOBO的意见:
        有时可以使用右键点击项目工程中的该cpp文件,选择setting,在c/c++栏,选择PreCompiled headers,然后设置第一选项,选择不使用预编译头,解决这个问题。

    *****************************

    在工程Setting中选C/C++,把选择PreCompiled headers,选择不使用预编译头,即可

  • 相关阅读:
    spring jdk动态代理
    java分页对象封装
    jQuery---ajxa
    创建ajax对象
    EL基础语法
    jsp语法
    servlet cookie session
    java 单例模式
    yapi 强大的api管理系统
    Orange--一个基于OpenResty / Nginx的HTTP API Gateway
  • 原文地址:https://www.cnblogs.com/yanhc/p/2175254.html
Copyright © 2011-2022 走看看