其他分享
首页 > 其他分享> > c – stdafx.h的用途

c – stdafx.h的用途

作者:互联网

参见英文答案 > What is “stdafx.h” used for in Visual Studio?                                    4个
stdafx.h文件的目的是什么,预编译头文件的含义是什么?

解决方法:

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++ 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

标签:c,visual-c,precompiled-headers,stdafx-h
来源: https://codeday.me/bug/20190915/1804891.html