![]() | ![]() |
Home |
|
|
|
| Chapter 2: The Embedded SQL Interface |
|
| Database examples |
|
| Building the examples |
Along with the sample program is a batch file, makeall.bat, that can be used to compile the sample program for the various environments and compilers supported by Adaptive Server Anywhere. For OS/2 the command is makeall.cmd. For UNIX, use the shell script makeall.
The format of the command is as follows:
makeall {Example} {Platform} {Compiler}The first parameter is the name of the example program that you want to compile. It is one of:
cur
static cursor example
dcur
dynamic cursor example
The second parameter is the platform in which the program is run. The platform can be one of the following:
WINDOWS
compile for 16-bit Windows.
WIN32
compile for 32-bit Windows 3.x using the Watcom 32-bit support.
WINNT
compile for Windows NT.
OS232
compile for 32-bit OS/2.
NETWARE
compile for Netware NLM.
QNX
compile for QNX.
The third parameter is the compiler to use to compile the program. The compiler can be one of:
WC
use Watcom C/C++
MC
use Microsoft C
BC
use Borland C
CS
use IBM C Set++ or Visual Age
|
|