You must use the Watcom C/C++ compiler, version 10.6 or 11.0, to compile embedded SQL programs as NetWare Loadable Modules (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 dblib10 OPTION CASEEXACT 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.