几个文件在原来的工程中编译正常,当把它复制到另外一个工程中时,即出现编译错误:
fatel error C1010: unexpected end of file while looking for precompiled header directive.
(加入之前两个工程都能正常编译)

解决方案 »

  1.   

    有我的奇怪?
    G:\Microsoft Visual Studio\VC98\INCLUDE\comutil.h(101) : fatal error C1001: INTERNAL COMPILER ERROR
            (compiler file 'msc1.cpp', line 1786) 
             Please choose the Technical Support command on the Visual C++ 
             Help menu, or open the Technical Support help file for more information
      

  2.   

    1、Rebuild All
    2、cpp文件种是否包含了"stdafx.h"
      

  3.   

    一般情况是#include "stdafx.h"的问题,
    也可能出现copy时出现问题,注意"stdafx.h"里面的内容是否一致
      

  4.   

    把DEBUG里面所有的文件都DELETE
    然后重新编
      

  5.   

    clear后再编译,这种情况,每天遇到好几次.
      

  6.   

    缺少预编译头文件
    #include "stdafx.h"
      

  7.   

    unexpected end of file while looking for precompiled header directive.
    说得很明白嘛,没有包含#include "stdafx.h"