Mail Archives: cygwin/1999/06/01/10:22:08
> 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 -