能详细解释一下吗,我看了MSDN可是还是不知道错误原因

解决方案 »

  1.   

    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.   

    Alt+F7,左边选中你添加的文件,在右面选择C/C++选项卡,选择precompiled headers,选中最上方的Not using precompiled headers
      

  3.   

    同意“bluebohe”
    Settings->C/C++ ->Category->precompiled headers->Not using precompiled headers