Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <004801beac39$ae4603d0$29acdfd0@InspirePharm.Com> Reply-To: "Suhaib M. Siddiqi" From: "Suhaib M. Siddiqi" To: "Raju K. V." , References: Subject: Re: link error Date: Tue, 1 Jun 1999 10:18:53 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id KAA00630 > hi, > > I was trying to compile an application called linuxtree (available from > filewatcher.org). Compilation went thru but I got the following error > message during linking: > > gcc -s -o lxt main.o gui.o data.o uid.o view.o commands.o readln.o > config.o -lncurses > data.o(.text+0xc5e):data.c: undefined reference to `alphasort' > data.o(.text+0xc88):data.c: undefined reference to `scandir' I am not sure, if scandir and alphasort availble in Cygwin B20.1 stock. I think Corrina's patched version does. --SMS > collect2: ld returned 1 exit status > make: *** [lxt] Error 1 > > In which library is alphasort and scandir defined? > The context of use is > > void data_restatdir(int node) { > int curnode,prevnode,tnode,newnode,patiencedelay; > struct dirent **dirlist; > int dirp,numdir; > struct dirent *ent; > struct stat tmpstat; > #ifdef DEBUG > fprintf(debug,"\ndata_restatdir called: <%s>\n",data_fullname(node)); > fflush(debug); > #endif > if(!data_isdir(node)) { > crapout("restating nondir"); > /*data_restatfilenode(node);*/ > /*return;*/ > } > if(!data_downdir(node)) { > data_logdir(node); > return; > } > #ifdef DEBUG > else fprintf(debug,"restating dir: <%s>\n",data_fullname(node)); > fflush(debug); > #endif > > gui_startpatience("restating..."); > > /* first add new files to list */ > > numdir=scandir(data_fullname(node),&dirlist,0,alphasort); > if(numdir==-1) { > data_restatdir(data_updir(node)); > return; > } > dirp=0; > tnode=data_downdir(node); > curnode=tnode; > . > . > . > . > > > Thanks in advance, > Raju > > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > > -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com