The ODBC sample program in samples-dir\SQLAnywhere\C includes a batch file (shell script for Unix) that can be used to compile and link the sample application.
Open a command prompt and change directory to the samples-dir\SQLAnywhere\C directory.
Run the makeall batch file or shell script.
The format of the command is as follows:
makeall api platform compiler
The parameters are as follows:
API Specify odbc to compile the ODBC example rather than an embedded SQL version of the application.
Platform Specify WINDOWS to compile for Windows operating systems.
Compiler Specify the compiler to use to compile the program. The compiler can be one of the following:
WC use Watcom C/C++
MC use Microsoft Visual C++
BC use Borland C++ Builder