The C++ library compatible with Cfront V3.0.3 can only be used in the Cfront C++ mode of the compiler. This library includes the following interfaces:
A class for complex math
<complex.h>
Classes for stream-oriented I/O
<iostream.h>
<fstream.h>
<strstream.h>
<stdiostream.h>
<iomanip.h>
<generic.h>
<new.h>
The header files for the above interfaces are contained in the library SYSLIB.CRTE.CPP, and the modules are located in the library SYSLNK.CRTE.CPP.
Using the library
Program development in the BS2000 environment (SDF)
In the search for standard headers at compilation, the library SYSLIB.CRTE.CPP must be searched before the library SYSLIB.CRTE. This can be ensured by specifying the search for standard headers with the option STD-INCLUDE-LIBRARY= *STANDARD-LIBRARY (default) in the MODIFY-INCLUDE-LIBRARY statement.
When linking with the BIND statement of the compiler, only the following entry must be specified in the MODIFY-BIND-PROPERTIES statement:
RUNTIME-LANGUAGE=*CPLUSPLUS(MODE=*V2-COMPATIBLE).
Program development in the POSIX environment
If you use the Cfront C++ library, you cannot use the option -K no_at
.
In order to include header files and link in the required modules, only the language mode option -X V2-COMPATIBLE
needs to be specified in the CC
command. Note, however, that this option must be specified for both compilation and linkage:
|
|
Documentation
The Cfront C++ library is described in detail in the following manual:
“C++ V2.1 (BS2000) C++ Library Functions“ [5].