HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)

omp_get_wtime..........................................................................................217
omp_get_wtick...........................................................................................217
9 Tools and Libraries...............................................................................................................218
HP Specific Features of lex and yacc.......................................................................218
Creating and Using Libraries..................................................................................219
HP aC++ Libraries...........................................................................................219
Standard C++ Library..................................................................................219
Introduction................................................................................................220
Introduction to Using the Standard C++ Library...............................................220
Differences between Standard C++ Library and Other Libraries.........................221
The Non-Object-Oriented Design of the Standard C++ Library..........................221
Smaller Source Code..............................................................................222
Flexibility...............................................................................................222
Efficiency..............................................................................................222
Iterators: Mismatches and Invalidations.....................................................222
Templates: Errors and Code Bloat.............................................................222
Multithreading Problems..........................................................................222
Standard C++ Library Reference...................................................................223
Incompatibilities Between the Library and the Standard....................................223
Tools.h++ Library........................................................................................223
HP aC++ Runtime Support Library.................................................................224
IOStream Library.........................................................................................224
Standard Components Library Not Provided...................................................224
Linking to C++ Libraries...............................................................................224
Linking with Shared or Archive Libraries.........................................................225
Specifying Other Libraries............................................................................225
Creating and Using Shared Libraries..................................................................225
Compiling for Shared Libraries......................................................................225
Example................................................................................................225
Creating a Shared Library............................................................................225
Example................................................................................................226
Using a Shared Library................................................................................226
Example................................................................................................226
Example of Creating and Using a Shared Library............................................226
Linking Archive or Shared Libraries................................................................226
Syntax..................................................................................................227
Example................................................................................................227
Updating a Shared Library...........................................................................227
Advanced Shared Library Features.....................................................................228
Forcing the Export of Symbols in main...........................................................228
Binding Times.............................................................................................228
Forcing Immediate Binding......................................................................228
Side Effects of C++ Shared Libraries..............................................................229
Routines and Options to Manage C++ Shared Libraries...................................229
16 Contents