From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96075319106535.tru64-unix-managers.marc@archive.invalid> From: Jon Howell Date: Wed, 19 Apr 1995 20:39:33 +0000 To: tru64-unix-managers Subject: SUMMARY: malloc() in /usr/include files X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96075319106535 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 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 to fixed the problem. (Curiously, malloc.h doesn't include stdlib.h itself.) Many thanks go to Dan Riley 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@hitl.washington.edu University of Washington, FJ-15 Seattle, Washington 98195