Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

The C++ library for the Cfront C++ language mode C++ V2

&pagelevel(3)&pagelevel

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)

The headers of the Cfront C++ library contain declarations which use the "at" sign (@). You should note that it will not be possible to use the Cfront C++ library where *NO is specified in the option AT-ALLOWED=... in the MODIFY-SOURCE-PROPERTIES statement.

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:

CC -X V2-COMPATIBLE -c x.C y.C

CC -X V2-COMPATIBLE x.o y.o

# Compilation

# Linkage

Documentation

The Cfront C++ library is described in detail in the following manual:
“C++ V2.1 (BS2000) C++ Library Functions“ [5].