而且cpp只有两个,所以如果项目使用预编译头(precompiled header)的话,给这两个cpp分别加上#include "stdafx.h"也将十分简单。
基于318个网页-相关网页
法,让VC自动帮你加入这个头文件的编译,在VC++的工程设置中,选择C/C++选项卡,然后选择预编译的头文件(Precompiled headers),在下面选择自动使用预补偿页眉(Automatic use of Precompiled headers),在文本框内写入stdafx.h即可。
基于36个网页-相关网页
precompiled header file 先行编译标头档案 ; 先行编译标头文件 ; 先行编译标头档
precompiled header directive 先行编译标头指示词
Precompiled header files 预编译的头文件
以上来源于: WordNet
If the precompiled header file can't be used, it is ignored.
如果无法使用这个预编译头文件,那么将忽略它。
As the name suggests, a precompiled header file contains object code in a compiled form that is included before the header stop point.
正如其名称所表示的,预编译头文件在头中止(header stop)点之前,以一种经过编译的形式包含目标代码。
As it searches for the included file, the compiler looks for a precompiled header in each directory just before it looks for the include file in that directory.
在搜索包含文件的过程中,编译器首先在每个目录中查找预编译头文件,然后再在这些目录中搜索包含文件。
应用推荐