H-Series Application Migration Guide (H06.07+, J06.03+)
Native C and C++ Migration Tasks
H-Series Application Migration Guide—429855-008
5-12
Using the C++ Neutral Dialect
•
NEUTRAL (pragma)
•
BUILD_NEUTRAL_LIBRARY (command line option)
The NEUTRAL pragma is used within headers supplied by HP to mark an object as
being sharable between VERSION2 and VERSION3 of the standard library.
The BUILD_NEUTRAL_LIBRARY option enables you to create a DLL that uses the
neutral dialect. This option causes the compiler to check whether or not a compilation
will create a DLL that can use the neutral dialect. The C++ compiler generates an error
if BUILD_NEUTRAL_LIBRARY is specified and the program references an object not
marked with NEUTRAL.










