ASA Programming Guide
Embedded SQL Programming
Introduction
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
On Windows, preprocess the embedded SQL file using the following command:
sqlpp -o NETWARE srcfile.sqc
This instruction creates a file with .c extension.
Compile file.c using the Watcom compiler (10.6 or 11.0), using the /bt=netware
option.
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.