minires undefined '___res_search'

King Lung Chiu csklc@farrer.hpc.csiro.au
Wed Feb 11 05:06:00 GMT 2004


> I don't believe the above command even attempts to link to the "resolv"
> library.  There is certainly no -lresolv anywhere on that line...

Oops, my mistake. Pasted the wrong line. It actually contained -lresolv as 
follows:

 gcc -o kx509 -lresolv -DUSE_KRB5 kx509.o debug.o getcert.o get_kca_list.o 
 get_realm.o store_in_cc.o store_tkt.o ../lib/libkx.a -L/usr/lib -L/usr 
 -lcrypto -L/opt/krb5-1.3.1//lib -lkrb5 -lk5crypto -lcom_err

It turned out that I just need to move -lresolv to the end of line so that 
the linker can find the library. So all is working now.

thanks, regards

King Lung Chiu


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list