|
From: | Bob Friesenhahn |
Subject: | Re: Handling PACKAGE, PACKAGE_VERSION, etc. with multiple libraries |
Date: | Thu, 5 Aug 2004 21:32:41 -0500 (CDT) |
On Fri, 6 Aug 2004, Ralf Corsepius wrote:
* Autoheader defines can be influenced by compiler/preprocessor flags having been used during configuration. I.e. even "system defines" or "standard defines" you may assume to be constant only reflect your configuration's momentary situation. Even "sizes of types" or "target/cpu has type" features depend on compiler flags. [Consider multilibs/multiarch'ed systems. You'd have one config.h per cpu-variant ("multiheaders").]
This is a very good point and a reason why library developers should strive to produce "invariant" headers which produce the same binary ABI even if the size of some types change based on compilation options. This is a good reason to use <stdint.h> or other similar headers in order to obtain specifically sized types.
Bob ====================================== Bob Friesenhahn address@hidden http://www.simplesystems.org/users/bfriesen
[Prev in Thread] | Current Thread | [Next in Thread] |