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

致命错误C1010,在寻找预编译指示头文件时,文件未预期结束。就是没有找到预编译指示信息的问文件。

(vc++)需要引入 #include "stdafx.h"(每一个.cpp文件都需要引入,即使a.cpp中已经引入,b.cpp文件includea.cpp时也需要), 

且需要在include “xx.cpp” 之前 include "stdafx.h"

posted @ 2017-12-27 17:18  wonkju  阅读(436)  评论(0编辑  收藏  举报