Building the Sample ODBC Program for Windows

Building the sample ODBC program allows you to run the program and see how it performs ODBC tasks, such as connecting to a database and executing statements.

Prerequisites

For x64 platform builds, you may need to set up the correct environment for compiling and linking. Here is an example that builds the sample programs for an x64 platform.

set mssdk=c:\mssdk\v7.0
build64
Task

A batch file located in the %ALLUSERSPROFILE%\SybaseIQ\samples\SQLAnywhere\C directory can be used to compile and link all the sample applications.

  1. Open a command prompt and change the directory to the %ALLUSERSPROFILE%\SybaseIQ\samples\SQLAnywhere\C directory.
  2. Run the build.bat or build64.bat batch file.

The sample ODBC program is built.