SourcePro DB : DB Access Module for DB2 CLI User’s Guide : Technical Information : Using Static Libraries with DB2 CLI Access Module and MS SQL Server Module
Using Static Libraries with DB2 CLI Access Module and MS SQL Server Module
If you are using static libraries, and you want to use the DB Access Module for DB2 CLI with the DB Access Module for MS SQL Server, you will encounter multiply-defined symbols when trying to link your application. The clients supplied by these vendors define the ODBC functions, thus resulting in multiple definitions.
To enable the use of this access module with the DB Access Module for MS SQL Server in the same application when using static libraries, you must enable runtime loading of the driver when building each of the access modules.
For information on enabling runtime loading of the DB2 ODBC/CLI driver, see Installing and Building Your SourcePro Products located at buildspace\docs\html\rcbbd\index.html.