Standard headline files inside stdafx.h



  • Should it be included in the pre-compiled headline file stdafx.h Standard Library headlines (Standards)stringalgorithm They don't change, do they?

    It's embarrassing to write. #include "stdafx.h" each .cpp file. Visual Studio 2015.



  • If you decided to use Precompiled Headers (to expedite the collection), the titles of the standard libraries. I need you to. include stdafx.h For this, all the raw materials are being wrapped up once by the compiler, and then for all the other files, they've already used the pre-complied files. That's right. non-changeable The files should be inserted so as not to cause any further sampling of these precompiled headers.

    The mechanism of pre-completed headings is quite flexible. You can turn it off completely or for separate files. And for one group of files, use one precompiled header for another group. Well, the name. stdafx.h If it's default, but it's not fixed, you can change anything else.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2