C and C++ Binary and Run-Time Interoperability with Previous Releases

Object Files and Interoperability

The build process uses the new run-time libraries for all object files that are being linked, if the entry points and interfaces have not changed between releases. However, you should not mix object files that use a shared run-time library, with object files that do not. See "Object Files Created in Previous VisualAge C++ Releases" for information about handling object files.

DLLs, Executable Files, and Interoperability

You can use DLLs and executable files created with previous VisualAge C++ releases, with DLLs and executable files created in this release. All of the DLLs and executable files need to be compiled with a shared run-time library. However, the run-time libraries used by DLLs and executable files compiled in a previous release need to use the run-time libraries in this release. See "Use DLLs and Executable Files Created in Previous VisualAge C++ Releases" for information about using DLLRNAME to forward references to the new run-time libraries.

Some restrictions apply when you use two run-time libraries. The restrictions are the same as in previous releases:

Special Considerations When Using C++ I/O

The ANSI C++ I/O library provided in this release, and the AT&T I/O library do not share streams and therefore cannot be used together on the same stream. However, they can be used in the same application on different streams. Also, the ANSI library and the C++ library can coexist in the same run-time DLL because entry points in the ANSI library are all in the std namespace. If you use streams, note that the IBM Open Class library also uses ANSI C++ I/O. Therefore you cannot use the IBM Open Class library if you need to coexist with objects or libraries used in previous releases that use iostream.



Build with Existing Object Files and Libraries
Use DLLs and Executable Files Created in Previous VisualAge C++ Releases


DLLs and Executable Files Created in Previous VisualAge C++ Releases
Object Files Created in Previous VisualAge C++ Releases
Run-Time Library File Names