delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/01/10:22:08

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" <ssiddiqi AT ipass DOT net>
From: "Suhaib M. Siddiqi" <ssiddiqi AT ipass DOT net>
To: "Raju K. V." <rajukv AT wipinfo DOT soft DOT net>, <cygwin AT sourceware DOT cygnus DOT com>
References: <Pine DOT SV4 DOT 3 DOT 93 DOT 990601195835 DOT 29727A-100000 AT tagore>
Subject: Re: link error
Date: Tue, 1 Jun 1999 10:18:53 -0400
MIME-Version: 1.0
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
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019