Hi, Thanks a lot. I managed to solve the problem. Regars, SYT
Hor Meng Yoong <yoonghm gmail.com> wrote: 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 _______________________________________________ unixODBC-dev mailing list unixODBC-dev easysoft.com http://mail.easysoft.com/mailman/listinfo/unixodbc-dev
Never miss a thing. Make Yahoo your homepage.
|