What is “stdafx.h” used for in Visual Studio?

后端 未结 4 1061
无人及你
无人及你 2020-11-22 06:47

A file named stdafx.h is automatically generated when I start a project in Visual Studio 2010. I need to make a cross-platform C++ library, so I don\'t/can\'t u

4条回答
  •  无人及你
    2020-11-22 07:34

    "Stdafx.h" is a precompiled header.It include file for standard system include files and for project-specific include files that are used frequently but are changed infrequently.which reduces compile time and Unnecessary Processing.

    Precompiled Header stdafx.h is basically used in Microsoft Visual Studio to let the compiler know the files that are once compiled and no need to compile it from scratch. You can read more about it

    http://www.cplusplus.com/articles/1TUq5Di1/

    https://docs.microsoft.com/en-us/cpp/ide/precompiled-header-files?view=vs-2017

提交回复
热议问题