Tools.h++ Manual
104011 Tandem Computers Incorporated 2-1
Compiling Programs 2
This section will tell you how to compile a program using the Tools.h++ Class
Library.
2.1 Porting considerations
All of the Tools.h++ header files have lower-case names of less than eight
characters (plus suffix) for ease of porting between MS-DOS and UNIX. The
suffix is always "
.h
".
Standard C++ library include files (such as
<iostream.h>
) deserve a special
comment. Most manufacturers have followed the AT&T naming convention,
but a few have chosen to go their own way. The most common difference is in
the suffix. AT&T uses
".h"
, other manufacturers use
".hxx"
, or
".hpp"
.
The most common place where this creates a problem is in the iostream library.
You can increase your portability by always including
<rw/rstream.h>
(instead of, for example,
<iostream.h>
). This header file will make the right
choice depending on which compiler you are using.
Suffices for files containing code is also a problem. Consider the following
simple program called "
tes
t":
#include <rw/rwdate.h>
#include <rw/rstream.h>
main()
{
// Construct a date with today’s date: