This section does not apply to Windows CE.
For Windows CE information, see Linking ODBC applications on Windows CE.
When linking your application, you must link against the appropriate import library file to have access to the ODBC functions. The import library defines entry points for the ODBC driver manager odbc32.dll. The driver manager in turn loads the SQL Anywhere ODBC driver dbodbc10.dll.
Separate import libraries are supplied for Microsoft and Watcom compilers.
Add the directory containing the platform-specific import library to the list of library directories.
The import libraries are stored in the lib subdirectory of the directory containing your SQL Anywhere executables and are named as follows:
Operating system | Compiler | Import library |
---|---|---|
Windows | Microsoft | odbc32.lib |
Windows | Watcom C/C++ | wodbc32.lib |
Windows | Borland | bodbc32.lib |
Windows CE | Microsoft | dbodbc10.lib |