Run-Time Library File Names (OS/2, Windows)

Usually, you do not refer to the VisualAge C++ run-time library by file name. You set build options to choose what version of the run-time libraries are to be used during a build. You can also set options to suppress automatic linking of the run-time library, in which case you may have to explicitly name the library files to link.

VisualAge C++ run-time library packages C and C++ functions separately. Modules generated from C source code use only the C run-time library. Modules generated from C++ sources, or a mixture of C and C++, must link to both the C and C++ run-time libraries. In previous versions of VisualAge C++ and predecessor products, the C and C++ libraries were combined.

Here are the static versions of the run-time libraries:

File Name Description
CPPRSS40.LIB singlethread static C run-time library
CPPRAS40.LIB singlethread static C++ run-time library
CPPRMS40.LIB multithread static C run-time library
CPPRBS40.LIB multithread static C++ run-time library
CPPRNS40.LIB subsystem static C run-time library
CPPRES40.LIB subsystem static C++ run-time library

The static run-time libraries reside in the directory %VACPPMAIN%\LIB. The environment variable is VACPPMAIN is set during installation to hold the absolute path of the root directory in which VisualAge C++ is installed.

Here are the shared, or DLL, versions of the run-time library and associated import libraries:

File Name Description
CPPRSI40.DLL singlethread dynamic link C run-time library
CPPRAI40.DLL singlethread dynamic link C++ run-time library
CPPRMI40.DLL multithread dynamic link C run-time library
CPPRBI40.DLL multithread dynamic link C++ run-time library
CPPRNI40.DLL subsystem dynamic link C run-time library
CPPREI40.DLL subsystem dynamic link C++ run-time library

When you explicitly name the run-time library for dynamic linking, you must list both the import library and the object library that contain entry points for the DLL you use. Here are the import and object libraries associated with the VisualAge C++ run-time DLLs:

Dynamic Link Library Import Library Object Library
CPPRSI40.DLL CPPRSI40.LIB CPPRSO40.LIB
CPPRAI40.DLL CPPRAI40.LIB CPPRAO40.LIB
CPPRMI40.DLL CPPRMI40.LIB CPPRMO40.LIB
CPPRBI40.DLL CPPRBI40.LIB CPPRBO40.LIB
CPPRNI40.LIB CPPRNI40.LIB CPPRNO40.LIB
CPPREI40.LIB CPPREI40.LIB CPPREO40.LIB

The dynamic-link, import, and object run-time libraries reside in following directories:

%VACPPMAIN%\DLL
%VACPPMAIN%\BIN

VisualAge C++ also includes the two complex number libraries listed below. They are static libraries and have no DLL implementation.

File Name Description
CPPRSY40.LIB C++ complex number singlethread library
CPPRMY40.LIB C++ complex number multithread library


Run-Time Environments
Static and Dynamic Link Libraries

Repackaging VisualAge C++ DLLs for Distribution
The VisualAge C++ Environment


Choose Your Run-Time Library