carta
iodbc-config(1)

iodbc-config1

Script to get information about the installed version of iodbc

Usage

iodbc-config [--prefix [=DIR]] [--exec-prefix [=DIR]] [--version] [--cflags] [--libs] [--static-libs] [--libtool-libs] [--odbcini] [--odbcinstini]

Overview

iodbc-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link programs that use iODBC.

Options

iodbc-config accepts the following options:

--version

Print the currently installed version of iODBC on the standard output.

--cflags

Print the compiler flags that are necessary to compile an iODBC program.

--libs

Print the linker flags that are necessary to link an iODBC program using dynamic libraries (if supported).

--static-libs

Print the linker flags that are necessary to link an iODBC program using static libraries.

--libtool-libs

Print the linker flags that are necessary to link an iODBC program in a libtool environment.

--odbcini

Print the path of the system wide odbc.ini file.

--odbcinstini

Print the path of the system wide odbcinst.ini file.

--prefix[=PREFIX]

If specified, use PREFIX instead of the installation prefix that iODBC was built with when computing the output for the --cflags and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified before any --libs or --cflags options.

If PREFIX is not specified, the --prefix flag shows where iODBC is currently installed.

--exec-prefix=PREFIX

If specified, use PREFIX instead of the installation exec prefix that iODBC was built with when computing the output for the --cflags and --libs options. This option must be specified before any --libs or --cflags options.

Examples

To compile a program that calls the iODBC API, make sure the iodbc-config program can be found in the PATH environment variable, before using the following Makefile fragment:

    CFLAGS=`iodbc-config --cflags`
    LDLIBS=`iodbc-config --libs`
    iodbctest: iodbctest.c
	    cc $(CFLAGS) -o iodbctest iodbctest.c $(LDLIBS)

History

  • Arch Linux 2026-11-01: the text shown here
  • Debian 13 (Trixie) to Debian 8 (Jessie)
  • Debian 7 (Wheezy)
  • Debian 6.0 (Squeeze) to Debian 5.0 (Lenny)
  • Debian 4.0 (Etch)
  • Debian 3.1 (Sarge)
  • Debian 3.0 (Woody)

--cflags since Debian 3.1 (Sarge); --exec-prefix since Debian 3.1 (Sarge); --libs since Debian 3.1 (Sarge); --libtool-libs since Debian 3.1 (Sarge); --odbcini since Debian 3.1 (Sarge); --odbcinstini since Debian 3.1 (Sarge); --prefix since Debian 3.1 (Sarge); --static-libs since Debian 3.1 (Sarge); --version since Debian 3.1 (Sarge).

Author

iODBC Administrator <[email protected]>

From libiodbc 3.52.16-3 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.