This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /