VC下编译C文件出现unexpected end of file的问题

来源:互联网 发布:淘宝快递运费价格表 编辑:程序博客网 时间:2024/05/29 17:59
 

 VC下编译C文件出现unexpected end of file while looking for precompiled header directive的问题

 

右键点工程名,选Settings, 然后选c/c++属性页,再选catagory选单中选 precompiled header ,将选项置成Not using 或者Autometic use 
 
如果加上源文件stdafx.cpp, 里面内容只有一行 #include "stdafx.h"
在各c文件里, 也加上#include "stdafx.h", 也可以解决。
原创粉丝点击