Top "Precompiled-headers" questions

A precompiled header is a header file that has statically compiled but still separate from its final executable in order to speed up compilation of dependent files.

Using a namespace to make global functions, but getting multiply defined symbols error

These functions are Utility type things that most of my programs objects will use. I want to have them in …

c++ linker-errors precompiled-headers
Speed up compilation/link time when using boost libraries

I'm using Boost Program Options, and it takes quite a while (10 seconds or even more) for compiling very small C++ …

c++ boost compiler-construction precompiled-headers
xCode 4.4 does not get all the .pch file headers imports?

This is my .pch file - // // Prefix header for all source files of the 'English Club' target in the 'English …

objective-c header-files precompiled-headers
Why does Visual Studio C++ require including "StdAfx.h" even on files that don't need it?

I understand what precompiled headers are doing with "#include "StdAfx.h" and yes, I know I can turn them off. …

c++ visual-studio-2012 visual-studio-2015 precompiled-headers stdafx.h
What does #pragma hdrstop without parameter do when used in multiple files?

What is the practical value ("what does it do") of putting #pragma hdrstop (no filename parameter) in a couple of …

c++ visual-c++ precompiled-headers
GCC and Precompiled Headers

After reading this nice article (The Care and Feeding of Pre-Compiled Headers), I have some doubts regarding how these can …

c++ gcc dependencies precompiled-headers
How to use precompiled headers in Android NDK project?

I'm porting a big C++ project from Visual Studio to GCC for Android. Because of the large number of files, …

android gcc android-ndk precompiled-headers