Purpose of stdafx.h(stdafx.h 的用途)
问题描述
文件 stdafx.h
的用途是什么?预编译头是什么意思?
推荐答案
stdafx.h
是一个文件,由Microsoft Visual Studio IDE 向导,描述了两个标准系统和项目特定的包含文件经常使用但很少使用的不断变化.兼容的编译器(例如,Visual C++ 6.0 和更新版本)将预编译这个文件以减少总体编译时间.
stdafx.h
is a file, generated by Microsoft Visual Studio IDE wizards, that describes both standard system and project specific include files that are used frequently but hardly ever change. Compatible compilers (for example, Visual C++ 6.0 and newer) will pre-compile this file to reduce overall compile times.
Visual C++ 将在编译之前不要编译任何东西#include "stdafx.h"
在源文件中,除非编译选项/Yu'stdafx.h'
未选中(通过默认);它假定所有代码在源至并包括该行已经编译好了.
Visual C++ will
not compile anything before the
#include "stdafx.h"
in the source file, unless the compile option
/Yu'stdafx.h'
is unchecked (by
default); it assumes all code in the
source up to and including that line
is already compiled.
http://en.wikipedia.org/wiki/Precompiled_header
这篇关于stdafx.h 的用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:stdafx.h 的用途


- 静态初始化顺序失败 2022-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 近似搜索的工作原理 2021-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- C++ 协变模板 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- STL 中有 dereference_iterator 吗? 2022-01-01
- 从python回调到c++的选项 2022-11-16