1iodbc-config(1) iODBC Driver Manager iodbc-config(1)
2
3
4
6 iodbc-config - script to get information about the installed version of
7 iODBC
8
9
11 iodbc-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version]
12 [--cflags] [--libs] [--static-libs] [--libtool-libs] [--odbcini]
13 [--odbcinstini]
14
15
17 iodbc-config is a tool that is used to configure to determine the com‐
18 piler and linker flags that should be used to compile and link programs
19 that use iODBC.
20
22 iodbc-config accepts the following options:
23
24 --version
25 Print the currently installed version of iODBC on the standard
26 output.
27
28 --cflags
29 Print the compiler flags that are necessary to compile an iODBC
30 program.
31
32 --libs Print the linker flags that are necessary to link an iODBC pro‐
33 gram using dynamic libraries (if supported).
34
35 --static-libs
36 Print the linker flags that are necessary to link an iODBC pro‐
37 gram using static libraries.
38
39 --libtool-libs
40 Print the linker flags that are necessary to link an iODBC pro‐
41 gram in a libtool environment.
42
43 --odbcini
44 Print the path of the system wide odbc.ini file.
45
46 --odbcinstini
47 Print the path of the system wide odbcinst.ini file.
48
49 --prefix[=PREFIX]
50 If specified, use PREFIX instead of the installation prefix
51 that iODBC was built with when computing the output for the
52 --cflags and --libs options. This option is also used for the
53 exec prefix if --exec-prefix was not specified. This option
54 must be specified before any --libs or --cflags options.
55
56 If PREFIX is not specified, the --prefix flag shows where iODBC
57 is currently installed.
58
59 --exec-prefix=PREFIX
60 If specified, use PREFIX instead of the installation exec pre‐
61 fix that iODBC was built with when computing the output for the
62 --cflags and --libs options. This option must be specified
63 before any --libs or --cflags options.
64
65
67 To compile a program that calls the iODBC API, make sure the iodbc-con‐
68 fig program can be found in the PATH environment variable, before using
69 the following Makefile fragment:
70
71 CFLAGS=`iodbc-config --cflags`
72 LDLIBS=`iodbc-config --libs`
73
74 iodbctest: iodbctest.c
75 cc $(CFLAGS) -o iodbctest iodbctest.c $(LDLIBS)
76
77
78
80 Copyright © 1996-2016 by OpenLink Software
81
82
84 iODBC Administrator <iodbc@openlinksw.com>
85
86
87
883.52.12 16 June 2004 iodbc-config(1)