fatal error C1010: unexpected end of file while looking for precompiled header directive
这是什么错,应怎么改呢?

解决方案 »

  1.   

    Fatal Error C1010
    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.
      

  2.   

    少了 #include "stdafx.h",或者没放在第一行
    要不就去掉预编译选项
      

  3.   

    加入#include "StdAfx.h"或者括号匹配问题另外看有没有中文标点!!
      

  4.   

    在显示有错的那个cpp文件加上:#include "stdafx.h"
      

  5.   

    让我看看你的程序
    [email protected]
      

  6.   

    Setting中把头编译器预编译一项去掉
      

  7.   

    1)#include "stdafx.h"必须要放在第一行
    2)文件代码是不是少了}大括号啊?看看瞧瞧
      

  8.   


    通常是 CharmDream() 说的情况吧。“Setting中把头编译器预编译一项去掉”
      

  9.   


    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.