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:
The following command performs dynamic linking on Windows:
Scientific Toolworks, Inc. http://www.scitools.com |