Thread: precompiled header

  1. #1
    Registered User
    Join Date
    May 2006

    precompiled header

    Whats the mean of precompiled header (stdafx.h) ?

  2. #2
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Look in the help files on MSVC++ for a definitiive answer to that. You really do not need it anyway. Deativate it in project options, General Precomiled heades check never use
    Double Helix STL

  3. #3
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    New York


    stdafx.h is commonly used in Microsoft Windows projects as the name of a file which describes include files (both standard system include files and project specific include files) that are used frequently but are changed infrequently. Since many C/C++ source files for Windows programs include stdafx.h, making small changes in it means the entire project needs to be recompiled and small errors in it cause large errors in the rest of the project.

    Compatible compilers (for example, Visual C++ 6.0 and newer) will precompile this file to reduce overall compile times. Visual C++ will also not compile anything before the #include "stdafx.h" in the source file, unless you uncheck the compile option /Yu'stdafx.h': it assumes all code in your source up to and including that line is already compiled.

    The AFX in stdafx.h stands for Application Framework eXtensions. AFX was the original abbreviation for the Microsoft Foundation Classes (MFC). This type of file can also have alternate names, including "StdInclude.h".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  2. Precompiled header question
    By donglee in forum C++ Programming
    Replies: 13
    Last Post: 01-22-2009, 01:23 AM
  3. precompiled header file
    By George2 in forum C++ Programming
    Replies: 20
    Last Post: 04-07-2008, 08:14 AM
  4. Request for comments
    By Prelude in forum A Brief History of
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM