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

Link an ODBC application on UNIX using the -lsybdrvodb library file.

  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