FlightGear Portability GuideBernie Bright (bbright@c031.aone.net.au)
28 November 1998
FlightGear is a multi-platform general aviation flight simulator. It is an
open development project in which anyone with network access and a C++ compiler
can contribute patches or new features.
1 IntroductionThe file Include/compiler.h attempts to capture the differences between C++ compiler and STL implementations through the use of ``feature test macros''. The file is divided into two parts. The first part contains a section for each compiler, consisting of manifest constants specifying the features supported or absent from the particular compiler/STL combination. The second part uses the feature test macros to supply any missing features.
1.1 Supported compilers (more to come)
gcc 2.7.x
1.2 Features Tests
1.2.1 STL
1.2.2 Compiler
1.2.3 Include FilesThis section deals with header file naming conventions. Some systems truncate filenames, 8.3 being common, other systems use old or non-standard names for some header files. We deal with the simple cases by defining macros that expand to the appropriate filename.
The situation becomes complicated with missing header files. <streambuf> is a good example. In this case we must rely on FG_HAVE_STD_INCLUDES and FG_HAVE_STREAMBUF. TODO
1.3 and the rest
1.3.1 Namespace Issues
1.3.2 Templates
About this document ...
FlightGear Flight Simulator This document was generated using the LaTeX2HTML translator Version 96.1 (Feb 5, 1996) Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds. The command line arguments were: The translation was initiated by Curtis L. Olson on Mon Dec 7 15:43:47 CST 1998 Curtis L. Olson Mon Dec 7 15:43:47 CST 1998 |
|
|
Last modified: 8/12/2003 Curtis L. Olson
|