List Info

Thread: Re: Urgent Help: undefined reference errors




Re: Urgent Help: undefined reference errors
country flaguser name
Malaysia
2008-03-10 01:04:00
Hi,

Thanks a lot. I managed to solve the problem.

Regars,
SYT

Hor Meng Yoong <yoonghmgmail.com&gt; 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-deveasysoft.com
http://mail.easysoft.com/mailman/listinfo/unixodbc-dev


Never miss a thing. Make Yahoo your homepage.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )