OTL 4.0, How to compile OTL

How to compile OTL

OTL 4.0 is an integrated library which contains instances of the same template stream framework for the OCI7, OCI8, ODBC, and DB2 CLI. Let's refer to the instances as OTL 4.0/OCI7, OTL 4.0/OCI8, OTL 4.0/ODBC, and OTL 4.0/DB2-CLI. The following macro definitions (#define's) need to be used in order to compile each instance: There are several extra macro definitions which control compilation of the OTL header file: Here is a fragment of the OTL 4.0 header file in which the macros are defined:

//======================= CONFIGURATION #DEFINEs ===========================

// Uncomment the following line in order to include the OTL for ODBC:
//#define OTL_ODBC

// Uncomment the following line in order to include the OTL for
// MySQL/MyODBC:
//#define OTL_ODBC_MYSQL

// Uncomment the following line in order to include the OTL for DB2 CLI:
//#define OTL_DB2_CLI

// Uncomment the following line in order to include the OTL for
// Oracle 7:
//#define OTL_ORA7

// Uncomment the following line in order to include the OTL for
// Oracle 8:
//#define OTL_ORA8

// Uncomment the following line in order to include the OTL for
// Oracle 8i:
//#define OTL_ORA8I
 

The macro definitions may be also turned on via C++ compiler command line
option, e.g.: -DOTL_ODBC, -DOTL_ORA7, -DOTL_ORA8, -DOTL_ORA8I, -DOTL_ODBC_UNIX, -DOTL_ODBC_MYSQL, -DOTL_DB2_CLI

In order to compile OTL 4.0/OCI7, the OCI7 object libraries as well as the following OCI7 standard header files are needed:

The location of the header files and the libraries is specific to the operrating system. See the Oracle 7 manuals for more detail.

In order to compile OTL 4.0/OCI8, the OCI8 object libraries as well as the following OCI8 standard header files are needed:

The location of the header files and the libraries is specific to the operating system. See the Oracle 8 manuals for more detail.

In order to compile OTL 4.0/ODBC, the ODBC32 object libraries as well as the following ODB32 standard header files are needed:

In order to compile OTL3.2/DB2-CLI, the DB2 CLI object libraries as well as the following DB2/CLI header files are needed: For more detail, see the manul of the C++ environment that you are using.


Prev NextContentsGo Home

Copyright © 1996, 2001, Sergei Kuchin, email: skuchin@sprynet.com, kuchin@hotmail.com

Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies. 1