O'Reilly logo

Advanced UNIX Programming by Warren W. Gay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required