Compiling to Standards
Many UNIX platforms strive to adhere to various C and C++ standards where possible. Additionally, they all tend to support various enhancements that are not included in these standards. Most UNIX development environments will also support multiple C standards. So how does the programmer choose the standard to which he is compiling his source code?
Under UNIX, the choice of compile standard is established by a feature test macro that is defined. Generally, for any given platform, a standard is chosen by default. However, it is wiser to choose one explicitly to avoid difficulties compiling your project on the various UNIX platforms that you might be supporting. This may avoid other compile error surprises that might come ...
Get Advanced UNIX Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.