Using unixODBC Driver Manager

Build applications using the unixODBC Driver Manager on UNIX platform.

The unixODBC Driver Manager includes a shared library named libodbc.so, as a soft link to a library named libodbc.so.1. This file is typically located in the /usr/lib directory.

Note: Some older Driver Manager packages do not create the soft link from libodbc.so.1 to libodbc.so. Sybase recommends that you manually create this link. The ODBC Driver Manager also includes another shared library called libodbcinst.so.1. A soft link from this file to libodbcinst.so should also exist. If it is not on your system, you should create one.
  1. To link an ODBC application against the unixODBC Driver Manager, pass the -lodbc flag to the linker.
  2. If the unixODBC Driver Manager is not installed in the /usr/lib directory, you must also pass this to the linker:
    -Ldir

    where dir is the directory where the unixODBC Driver Manager shared libraries are located.