home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Subject: Re: Idempotent header file proposal
- Reply-To: nikki@trmphrst.demon.co.uk
- Distribution: world
- X-Mailer: cppnews $Revision: 1.20 $
- Organization: Trumphurst Ltd.
- Lines: 29
- Date: Mon, 23 Nov 1992 12:36:19 +0000
- Message-ID: <722547379snx@trmphrst.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
- In article <1992Nov20.200435.18239@microsoft.com> jimad@microsoft.com (Jim Adcock) writes:
- > Ultimately we will begin to see more and more C++
- > development environments that not only offer precompiled headers, but
- > incremental compile/link support as well.
- It is unfortunate that most of the current compilers which have
- precompiled headers have such restrictions on their use, and such arcane
- command lines to use them, that they introduce problems, rather than
- solving them.
-
- For example, all the compilers I have seen with this feature insist that
- all modules that use the precompiled headers include the same headers, in
- exactly the same order. This encourages users to include ALL their headers
- in all their modules. This introduces lots of unnecessary dependencies,
- and means a very slow compile cycle when the code is moved to another
- compiler, without precompiled headers.
-
- Unfortunately, this awfulness is likely to spread - in the first place,
- compiler vendors who have precompiled headers see this method as a good
- thing, because it locks users into their compiler. Compiler vendors
- introducing precompiled headers feel they should implement them in a
- way compatible with (e.g.) Microsoft.
-
- Of course, having "proper" separately precompiled headers, which can be
- individually included only when actually needed, is much more difficult to
- do, so we are probably stuck with the (IMHO) nasty hack vendors supply at
- present.
- --
- Nikki Locke,Trumphurst Ltd.(PC and Unix consultancy) nikki@trmphrst.demon.co.uk
- trmphrst.demon.co.uk is NOT affiliated with ANY other sites at demon.co.uk.
-