Refer to the DB2 SDK Building Your Applications for information on compiling and linking the samples for your particular platform. A make file and build script are also supplied that have the correct options for the platform and supported compilers. These files are located in the sqllib\samples\cli (or sqllib/samples/cli) subdirectory.
If you are migrating applications from previous versions of DB2 CLI, refer to "Incompatibilities" for additional information.
Note: | The order in which the compiler searches for include (header) files can be
significant if there are two or more files with the same name, (for example
sql.h and sqlext.h are included in some ODBC SDK
environments).
If you are building only DB2 CLI applications, always put the DB2 include path before any others. If you are building ODBC applications, your build environment may require further customization in order to use the correct include files. Refer to the ODBC SDK documentation for more information. |