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 的用途


基础教程推荐
- 如何通过C程序打开命令提示符Cmd 2022-12-09
- 如何将 std::pair 的排序 std::list 转换为 std::map 2022-01-01
- 常量变量在标题中不起作用 2021-01-01
- 如何检查GTK+3.0中的小部件类型? 2022-11-30
- 我有静态或动态 boost 库吗? 2021-01-01
- 如何在 C++ 中初始化静态常量成员? 2022-01-01
- C++结构和函数声明。为什么它不能编译? 2022-11-07
- 这个宏可以转换成函数吗? 2022-01-01
- 静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么? 2021-01-01
- 在 C++ 中计算滚动/移动平均值 2021-01-01