O'Reilly logo

Cross-Platform Development in C++: Building Mac OS X, Linux, and Windows Applications by Syd Logan

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

Introduction

The typical definition of portability goes something like this:

Portability is a measure of how easily software can be made to execute successfully on more than one operating system or platform.

This definition, however, is only a starting point. To truly define the term portability, one must consider more than the mere fact that the software can be made to execute on another operating system. Consider the following C++ code:

Image

Most readers will agree that the preceding code will compile and execute on just about any platform that supports a decent C++ compiler.

However, potential problems lurk, even in code as simple as this. Let’s ...

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