Contents Index Loading the interface library dynamically Sample embedded SQL programs

ASA Programming Guide
  Embedded SQL Programming
    Introduction

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:

    FORMAT NOVELL
    MODULE dblib9
    OPTION CASEEXACT
    IMPORT @dblib9.imp
    LIBRARY dblib9.lib

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


Contents Index Loading the interface library dynamically Sample embedded SQL programs