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
A recent version of Microsoft Visual Studio is required.
For x86/x64 platform builds with Visual Studio, you must set up the correct environment for compiling and linking. This is typically done using Visual Studio's vcvars32.bat or vcvars64.bat (called vcvarsamd64.bat in older versions of Visual Studio).
Context and remarks
A batch file located in the %SQLANYSAMP16%\SQLAnywhere\C directory can be used to compile and link all the sample applications.
Open a command prompt and change the directory to the %SQLANYSAMP16%\SQLAnywhere\C directory.
Run the build.bat batch file.
If you are getting build errors, try specifying the target platform (x86
or x64
) as an argument to build.bat. Here is an example.
build x64 |
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0 |