Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 11 Feb 2004 16:06:14 +1100 (EST) From: King Lung Chiu To: Cygwin Mailing List Subject: Re: minires undefined '___res_search' In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII > 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/