unexpected end of file while looking for precompiled header directive 
问题怎么解决 望大侠赐教

解决方案 »

  1.   

    晕,这问题太老了吧,在C文件中加入#include "stdafx.h"
      

  2.   

    在C文件中加入#include "stdafx.h"
      

  3.   

    .cpp文件中没加#include <stdafx.h>,加上就没事了
      

  4.   

    加上后又报错‘Debug/post.pch’is not a precompile header file create with this compiler
      

  5.   

    在VC的编译环境中去除预编译设置:
    Project->setting->c/c++下拉框中选中precompiled,选第一项,不用预编译文件。
      

  6.   

    Project->Setting->C\C++->Categroy:Precompiled Headers
    再选上“No using Precompiled Header”