linkWithSharedLib Link Option

Syntax: Default:
link(linkWithSharedLib[, yes])
link(linkWithSharedLib, no)
link(linkWithSharedLib, no)

This option determines whether the module being built is linked with the shared, or dynamically loadable, version of the VisualAge C++ run-time library or with the static version.

By default, the static version is linked.

If you are building a subsystem with link(standAlone), linkWithSharedLib is set to no implicitly.

On OS/2 and Windows NT platforms, this option determines which run-time library is used when you build with link(defaultLibs), and is overriden by link(defaultLibs, no).

Linking statically produces a larger executable file that includes its own run-time environment, but that does not depend upon the VisualAge C++ run-time library being available on the target machine for dynamic loading at run-time.

Take care, when setting this option, that all modules required by applications which use the module being built are compatible. Generally, you want to avoid linking to more than one run-time environment by building all modules with the same version of the library.



Incremental C++ Build
C Compilation
Configuration Files


Set Build Options
Build
Choose Your Run-Time Library


Link Options
Link Options