GNU bug report logs - #8076
PCH support / howto

Previous Next

Package: automake;

Reported by: Olaf van der Spek <olafvdspek <at> gmail.com>

Date: Fri, 18 Feb 2011 14:08:01 UTC

Severity: wishlist

Full log


Message #34 received at 8076 <at> debbugs.gnu.org (full text, mbox):

From: Olaf van der Spek <ml <at> vdspek.org>
To: davehart_gmail_exchange_tee <at> davehart.net
Cc: Automake List <automake <at> gnu.org>, 8076 <at> debbugs.gnu.org,
	Warren Young <warren <at> etr-usa.com>
Subject: Re: PCH support
Date: Fri, 23 Dec 2011 22:58:56 +0100
On Fri, Dec 23, 2011 at 10:11 PM, Dave Hart <davehart <at> gmail.com> wrote:
> Another monkey wrench is gcc and Visual C++ have different models for
> how PCH is implemented.  Support in Automake would ideally target both

Have they? AFAIK they're equivalent.

> by finding a compatible subset.  I'm sure there are existing
> open-source models that demonstrate how to use both gcc and VC
> precompiled headers.  As I recall, gcc support is a bit more generic
> but involves a separate PCH invocation to "compile" the headers, while
> VC++ requires precomp.h be the first item included in each
> participating file but doesn't require a separate compiler invocation
> -- the first one that can use the precomp.pch generates it.

Both have a step to generate the PCH. VC builds stdafx.h via
stdafx.cpp, GCC builds a header file directly. Both basically require
the header to be the first include for PCH to be usable.

-- 
Olaf




This bug report was last modified 13 years and 259 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.