预编译头文件(precompiled header)

今天调试程序,碰到一个错误:fatal error C1010: unexpected end of file while looking for precompiled header directive

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

解决:

     1、Project   Setting-> C/C++   ->   Category(Precompiled   header)-> not   using   Precompiled   header

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

 

详细理解,参考:http://www.vcer.net/1047209431368.html

你可能感兴趣的:(compile)