[unixODBC-dev] Urgent Help: undefined reference errors

Hor Meng Yoong yoonghm at gmail.com
Mon Mar 10 05:03:35 GMT 2008


Hi:

  Normally, unixODBC is installed in /usr/local/include (the header
files such as sql.h) and library in /usr/local/lib (the library such
as libodbc.so). You need to modify the Makefile or shell environment
file to set library path to /usr/local/lib.

  In your trace, you have

gcc alpha1.o sample_main.o -o etd.cgi
/home/srb/SRB3_4_2/utilities/obj/srbClientUtil.o
-L/home/srb/SRB3_4_2/obj -lSrbClient -lm -lpthread

The change may be (depending on your machine as I use unixODBC on Sun
and Sun Studio).
gcc alpha1.o sample_main.o -o etd.cgi
/home/srb/SRB3_4_2/utilities/obj/srbClientUtil.o
-L/home/srb/SRB3_4_2/obj -L/usr/local/lib -lSrbClient -lm -lpthread
-lodbc

Regards
Hor Meng



More information about the unixODBC-dev mailing list