Short form of the question:
> When I build the same program, same compiler (g++2.6.3), same
> prototypes on an SGI/Irix5.2, it links. On the Alpha, I get:
>
> Unresolved:
> free__FPv
> malloc__FUl
> realloc__FPvUl
> calloc__FUlUl
>
> from the loader. Inspection with ld -y shows that the object files generated
> on the SGI refer to 'free', those on the Alpha refer to 'free__FPv'. There
> were no prototypes for these routines on the Alpha, so I put my own in,
> as mentioned below.
Boy, do I feel silly. I missed <stdlib.h> because it's not mentioned in
the man page on malloc. (I suppose I should be including that whenever
I link to -libc. Ahem.) Anyway, changing my include of <malloc.h> to
<stdlib.h> fixed the problem. (Curiously, malloc.h doesn't include stdlib.h
itself.)
Many thanks go to Dan Riley <dsr_at_lns598.lns.cornell.edu> for his speedy
reply, which got me going again right away. Thanks!
--Jon
Jon Howell 206-616-1478 voice
Systems Administrator 206-543-5380 fax
Human Interface Technology Lab. jonh_at_hitl.washington.edu
University of Washington, FJ-15
Seattle, Washington 98195
Received on Wed Apr 19 1995 - 16:40:07 NZST