functions alphasort and scandir missing

Jose Geraldo jotagera@terra.com.br
Wed Nov 7 14:09:00 GMT 2001


Hi

I'm trying to write a a programs that need to use functions scandir and
alphasort.

I have tho environments: conectiva linux (Red Hat derivated
distribution) with gcc 2.91.66 and Solaris 8 intel wirh gcc 2.95.3.

In Linux the program functions OK, compiles with no options and with no
errors. In Solaris, i get the folow warning:
warning: passing arg 2 of `scandir' from incompatible pointer type
and alphasort and scandir can't be found by ln:
Undefined                       first referenced
 symbol                             in file
alphasort                           /var/tmp/ccpa9kzi.o
scandir                             /var/tmp/ccpa9kzi.o
ld: fatal: Symbol referencing errors. No output written to monitor
collect2: ld returned 1 exit status

Anybody can help me ?

Thanks
Jose Geraldo




More information about the Gcc-help mailing list