C++:unexpected end of file while looking for precompiled header directive

在默认的情况下,出现以下错误提示: 

        fatal error C1010: unexpected end of file while looking for precompiled header directive
        执行 cl.exe 时出错.

上面这句的意思是:

        致命错误C1010:未知文件末尾,当查找预编译头文件指令。

解决方法:

在菜单栏: 工具--设置--C/C++,选自动使用预补偿页眉,或 不适用预补偿页眉。

=============================================

猜你喜欢

转载自blog.csdn.net/fegor/article/details/5113466