This readme.txt file contains instructions for compiling the programs and exercise solutions from the Navigating C++ book. ========================================================================== These are the files to download: nav_unix.tar - a tar file of programs that run under UNIX systems nav_linux.tar - a tar file of programs that run under LINUX systems nav_windows.zip - a zip file of programs that run under Windows systems ========================================================================== Here is the directory structure for the nav_windows.zip file. Windows /\ / \ BCC MSVC (Borland C++ 5.01 (Microsoft C++ 5.0 or higher) or higher) ========================================================================== Here is the directory structure for the nav_unix.tar file. UNIX / / SGI (SiliconGraphics C++ 7.01 or higher) ========================================================================== Here is the directory structure for the nav_linux.tar file. LINUX (g++ 2.91 or higher) ____________________________________|_________________________________ | | | | | | | | | | | | | | APPX CH1 CH2 CH3 CH4 CH5 CH6 CH7 CH8 CH9 CH10 CH11 CH12 CH14 ========================================================================== For each of the platforms, the organization is as follows: (Chapters 1-14) (Appendix) CHN APPX /\ /\ / \ / \ PGMS EXER IOS STL (Programs) (Exercises) (IOstream) (Standard Template Library) ========================================================================== UNIX and LINUX Platform: The complete set of programs and exercises is available in the tar files. Just download the file you want to your machine and run the following tar command. tar xvf nav_unix.tar (UNIX platform) tar xvf nav_linux.tar (LINUX platform) The tar command creates the directories with all the programs and exercises. Here's how to compile programs. make all (compile all programs in current dir) make pgm (compile pgm.C in current dir) make clean (clean out .o and executables) For SGI users: the makefiles in each directory currently use the 7.3 C++ compiler running under IRIX 6.3/6.4. For LINUX users: the makefiles in each directory currently use the g++ 2.91 compiler running under RED HAT 6.2. ========================================================================== Windows Platform: The complete set of pgms and exercises for Microsoft and Borland C++ is available in nav_windows.zip. Just download this file to your machine and unzip the files you want to work with. Microsoft Visual C++ Compiler: nmake all (compile all programs in current dir) nmake pgm (compile pgm.c in current dir) nmake clean (clean out .obj and .exe) Borland C++ Compiler: make all (compile all programs in current dir) make pgm (compile pgm.c in current dir) make clean (clean out .obj and .exe) ========================================================================== General Notes: 1. Use nmake with Microsoft's Visual C++ compiler. All Microsoft makefiles use -Tp compiler option to compile .c programs, so .cpp extensions are not necessary. The -Tp option can also be used in the Visual C++ IDE. 2. Use make with Borland's C++ compiler. All Borland makefiles use -P compiler option to compile .c programs, so .cpp extensions are not necessary. The -P option can also be used in Borland's IDE. 3. The makefiles in the SGI directories contain SiliconGraphics options but can be modified to work with other UNIX C++ compilers as needed. 4. Use make with g++ under LINUX. The makefiles may need to be modified to use gmake. ==========================================================================