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

6. Miscellaneous Portability Topics

In this chapter, several general tips related to portability are discussed. These concepts were not introduced by Netscape and Mozilla, and have been written about elsewhere, but are included for completeness.

Speaking of Mozilla, a document hosted at www.mozilla.org/hacking/portable-cpp.html provides nearly 40 tips for writing portable C++ code. Some of the suggestions are worth considering, but many of them (such as “Don’t use the namespace facility” and “Don’t use Run-time Type Information”) are outdated, referring back to a time when C++ was a relatively new language, and compilers were not uniform in their support of the language standard. Many of the rules are designed to deal with issues related to compilers ...

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