Files to build the sample programs are supplied with the sample code.
For Windows and NetWare operating systems, hosted on Windows operating systems, use makeall.bat to compile the sample programs.
For Unix, use the shell script makeall.
For Windows CE, use the esql_sample.sln project file for Microsoft Visual C++. This file appears in samples-dir\SQLAnywhere\CE\esql_sample.
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 the following:
CUR static cursor example
DCUR dynamic cursor example
ODBC ODBC example
The second parameter is the target platform. It is one of the following:
WINDOWS compile for Windows
WINIA64 compile for Windows
WINX64 compile for Windows
NETWARE compile for NetWare NLM
UNIX compile for Unix
UNIX64 compile for 64-bit Unix
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/C++
BC use Borland C++
For x64 or IA64 platform builds, you may need to set up the correct environment for compiling and linking. Here is an example that builds the dynamic cursor example for an x64 platform.
c:\x64sdk\SetEnv /XP64 makeall dcur winx64 mc