tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jon Howell <jonh () hitl ! washington ! edu>
To: tru64-unix-managers
Subject: SUMMARY: malloc() in /usr/include files
Date: Wed, 19 Apr 1995 20:39:33 +0000	[thread overview]
Message-ID: <96075319106535.tru64-unix-managers.marc@archive.invalid> (raw)

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@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@hitl.washington.edu
    University of Washington, FJ-15
    Seattle, Washington  98195

                 reply	other threads:[~1995-04-19 20:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox