C语言常见问题:unexpected end of file while looking for precompiled header directive

    xiaoxiao2021-03-25  220

    

    fatal error C1010: unexpected end of file while looking for precompiled header directive

    分析:工程头文件处理的错误。

    解决:1、右键点工程名,选设置,然后选c/c++属性页,再选catagory选单中选 precompiled header ,将选项置成no use 或者autometic

              2、如果使用的是Win32工程,可能就是错误文件没有包含:#include "stdafx.h"  ,添加该包含即可。

    转载请注明原文地址: https://ju.6miu.com/read-622.html

    最新回复(0)