| United States-English |
|
|
|
![]() |
HP C++ User Documentation |
|
HP C++
|
| Previous | Contents | Index |
The C++ Class Library is a set of headers and other files implementing a collection of basic C++ classes. In the library, these classes are arranged in functionally related groups called packages.
The C++ Class Library makes use of other run-time libraries. To ensure that all necessary libraries are linked into the executable image, certain switches need to be provided to the linker through the cxx command. For detailed information on the switches to use, see Using Compaq C++ for Tru64 UNIX.
Identifiers beginning with cxxl or CXXL are reserved for the C++ Class Library and should not be used by customer programs except as specified in this manual. |
Developers of multithreaded applications should note the following:
The Class Library class fstream constructors amd open() member function do not support different RMS attributes, for example, creating a stream-lf file.
To work around this restriction, use the C library creat() or open() call, which returns a file descriptor, and then use the fstream constructor, which accepts a file descriptor as its argument. For example:
#include <fstream.hxx>
int main()
{
int fp;
// use either creat or open
//if ( !(fp= creat("output_file.test", 0, "rfm=stmlf")) )
if ( !(fp= open("output_file.test", O_WRONLY | O_CREAT | O_TRUNC , 0,
"rfm=stmlf")) )
perror("open");
ofstream output_file(fp); // use special constructor which takes
// a file descriptor as argument
// ...
}
|
The following are restrictions in the C++ Class Library:
| Previous | Next | Contents | Index |
| About PDF files: The PDF files on this site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software on your system, you may download it from Adobe's website. | ||
|
|||||||||||||||