This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: minires undefined '___res_search'
- From: King Lung Chiu <csklc at farrer dot hpc dot csiro dot au>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Wed, 11 Feb 2004 16:06:14 +1100 (EST)
- Subject: Re: minires undefined '___res_search'
> 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/