Linking an ODBC Application With the Adaptive Server ODBC Driver on Windows

Link an ODBC application on Microsoft Windows using the sybdrvodb.lib library file.

  1. Add sybdrvodb.lib to Additional Dependencies in the Linker/Input properties and add <aseodbc_dir> to Additional Library Directories in Linker/General properties for your project.

  2. When deploying your application, verify that %SYBASE%\DataAccess\ODBC\dll (for 32-bit ODBC drivers) or %SYBASE%\DataAccess64\ODBC\dll (for 64-bit ODBC drivers), the directory containing the Adaptive Server ODBC Driver shared library, is included in your system path.