Using the C Client library

To use the C Client library, you must include the C Client header (H) file in your code and link with the C Client executable.

Including the header file

About this task

To include the C Client header file in your code:

Procedure

  1. Verify that the Include directory is in your Include path. For example: C:\IBM\ContentClassification\Client\C\Include
  2. Add the following line to your code:
     #include <BanterServerInclude/bnsClientApi.h>

Linking to the C Client executable

About this task

To link to the C Client executable:
Windows
  1. Ensure that the C Client Lib directory is in your Lib (Library) path.
  2. Add the static library (bnsClient88.lib) to your list of libraries to link with (VC++: Tools > Options > Directories > Library files).
  3. Ensure that the Bin directory is in your PATH environment variable.
AIX®
  1. Link with the C Client library (libBnsClient88.a).
  2. Ensure that the C Client library is in a directory in your LIBPATH environment variable, and that the Bin directory is in your LIBPATH environment variable.
Linux and Solaris
  1. Link with the C Client Shared Object (SO) library (libBnsClient88.so).
  2. Ensure that the C Client Shared Object (SO) library is in a directory in your LD_LIBRARY_PATH environment variable, and that the Bin directory is in your LD_LIBRARY_PATH environment variable.