Building applications without using an ODBC Driver Manager

You can build applications without using an ODBC Driver Manager on UNIX and Apple Mac OS X Intel. The Adaptive Server ODBC Driver is a shared dynamic library called libsybdrvodb.so, which is located in $SYBASE/DataAccess/ODBC/lib or $SYBASE/DataAccess64/ODBC/lib.

NoteYou cannot build your applications directly against the Adaptive Server ODBC Driver on Microsoft Windows; build your applications against an ODBC Driver Manager.

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

  1. Pass the -lsybdrvodb and -L<dir to Adaptive Server ODBC Driver> 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 Sun Solaris: LD_LIBRARY_PATH

    • On Mac OS X: DYLD_LIBRARY_PATH