This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
functions alphasort and scandir missing
- From: Jose Geraldo <jotagera at terra dot com dot br>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 18 Nov 2001 23:14:11 -0200
- Subject: functions alphasort and scandir missing
- Organization: Home User
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