|
The Gnu Compiler Collection, Version 3.4The Gnu Compiler Collection, Version 3.4Posted May 7, 2004 18:43 UTC (Fri) by nobrowser (guest, #21196)In reply to: The Gnu Compiler Collection, Version 3.4 by joib Parent article: The Gnu Compiler Collection, Version 3.4 What are the good reasons? In my own style, every header file is self-contained, #include-ing any other I dislike the idea of a single monolithic header file too, though, for a Acutally, that's only true if you generate the dependencies automatically.
(Log in to post comments)
The Gnu Compiler Collection, Version 3.4 Posted May 9, 2004 22:40 UTC (Sun) by alextingle (subscriber, #20593) [Link] When lots of header files refer to one another, large project builds tend to become unmanagable. One change to a single header file can force the recompilation of hundreds of objects. This can slow development to a crawl.The preferred alternative is to use forward declarations where possible in the header file itself, and put the #include in the body file.
|
Copyright © 2008, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.