This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

functions alphasort and scandir missing


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]