ASA Programming Guide
ODBC Programming
Building ODBC applications
This section does not apply to Windows CE. For more 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 Adaptive Server Anywhere ODBC driver dbodbc9.dll.
Separate import libraries are supplied for Microsoft, Watcom, and Borland compilers.
To link an ODBC application (Windows)
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 Adaptive Server 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 | dbodbc9.lib |