Building applications without using an ODBC Driver Manager

You can build applications without using an ODBC Driver Manager. The Adaptive Server ODBC Driver is a shared dynamic library with platform specific names.

Platform

Library file

Location

Windows 32-bit

sybdrvodb.dll

%SYBASE%\DataAccess\ODBC\dll

Windows 64-bit

sybdrvodb64.dl

%SYBASE%\DataAccess64\ODBC\dll

UNIX 32-bit

libsybdrvodb.so

$SYBASE/DataAccess/ODBC/lib

UNIX 64-bit

libsybdrvodb.so

$SYBASE/DataAccess64/ODBC/lib

StepsLinking an ODBC application with the Adaptive Server ODBC Driver on Windows

  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.

StepsLinking an ODBC application with the Adaptive Server ODBC Driver on UNIX

  1. Pass the -lsybdrvodb and -L<aseodbc_dir> flags to the linker.

  2. When deploying your application, verify that $SYBASE/DataAccess/ODBC/lib (for 32-bit ODBC drivers) or $SYBASE/DataAccess64/ODBC/lib (for 64-bit ODBC drivers), the directory containing the Adaptive Server ODBC Driver shared library, is included in your library path. The library path variable for your platform is:

    • On HP HP-UX Itanium: SHLIB_PATH

    • On IBM AIX: LIBRARY_PATH

    • On Linux and Solaris: LD_LIBRARY_PATH