Chapter 14. Writing Portable C with GNU Autotools

GNU Autotools enables you to write highly portable programs. However, using GNU Autotools is not by itself enough to make your programs portable. You must also write them portably.

This chapter introduces you to writing portable programs in C. The discussion starts with some notes on the portable use of the C language. The focus then turns to cross-Unix portability. This chapter concludes by examining the portability between Unix and Windows.

Portability is a big topic, and this chapter cannot cover everything related to it. The basic rule of portable code is to remember that every system is in some ways unique. Do not assume that every other system is like yours. It is very helpful to be familiar ...

Get GNU Autoconf, Automake, and Libtool 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.