几个文件在原来的工程中编译正常,当把它复制到另外一个工程中时,即出现编译错误:
fatel error C1010: unexpected end of file while looking for precompiled header directive.
(加入之前两个工程都能正常编译)
fatel error C1010: unexpected end of file while looking for precompiled header directive.
(加入之前两个工程都能正常编译)
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、cpp文件种是否包含了"stdafx.h"
也可能出现copy时出现问题,注意"stdafx.h"里面的内容是否一致
然后重新编
#include "stdafx.h"
说得很明白嘛,没有包含#include "stdafx.h"