Compiling & Linking with the API library

Compile the application as you normally would, adding dependencies for the API header file and library to the makefile.

The API libraries are located in the $STIHOME/bin/<architecture> directory.

On Unix/Linux, link with either udb_api.so or udb_api.sl (for dynamic linking) or udb_api.a (for static linking).

On Windows, link with either udb_api.lib (for dynamic linking) or udb_api.obj (for static linking). Define the system libraries needed. Your application may need additional libraries defined.

The following command performs static linking on Windows:

link test.obj udb_api.obj /nodefaultlib:libc advapi32.lib
   user32.lib wsock32.lib netapi32.lib 

The following command performs dynamic linking on Windows:

link test.obj udb_api.lib 

Scientific Toolworks, Inc.
http://www.scitools.com