fatal error C1010: 在查找预编译头指令时遇到意外的文件结尾
编译时候出的错,一般是什么原因造成的呢?

解决方案 »

  1.   

    是预编译头文件的问题,在Project-settings-C/C++ -Precompiled Headers中选Not Using
    Precompiled Headers
      

  2.   

    unexpected end of file while looking for precompiled header directiveA precompiled header was specified, but it did not contain a precompiled header directive.This error can be caused by specifying an incorrect file as a header file, or by specifying an include file with the /Yu (Use Precompiled Header) command line option that is not listed in the source file as an include file.
      

  3.   

    工程设置中为此文件指定了预编译头文件,但此文件没有include该头文件。
    Project-settings-C/C++ -Precompiled Headers->Not Using
      

  4.   

    在你的CPP文件中#include "stdafx.h"