Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Programming » SQL Anywhere Embedded SQL » Introduction to embedded SQL

Loading the interface library dynamically Next Page

Building NetWare Loadable Modules

You must use the Watcom C/C++ compiler, version 10.6 or 11.0, to compile embedded SQL programs as NetWare Loadable Modules (NLM).

To create an embedded SQL NLM
  1. On Windows, preprocess the embedded SQL file using the following command:

    sqlpp -o NETWARE srcfile.sqc

    This instruction creates a file with .c extension.

  2. Compile file.c using the Watcom compiler (10.6 or 11.0), using the /bt=netware option.

  3. Link the resulting object file using the Watcom linker with the following options:

    MODULE dblib10
    IMPORT @dblib10.imp
    LIBRARY dblib10.lib

    The files dblib10.imp and dblib10.lib are shipped with SQL Anywhere, in the nlm\lib directory. The IMPORT and LIBRARY lines may require a full path.