LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-11-15 10:14:27


I concur. This looks like a really, really old file in LAM -- looks
like the only times we touched this file was when we updated copyrights
and licenses. I'll add the #include <stdlib.h> for 7.1.2.

Thanks!

On Nov 15, 2004, at 9:44 AM, Ryuta Suzuki wrote:

> As far as I can see, #include <stdlib.h> header inclusion is omitted.
>
> Tim Prince wrote:
>
>> At 06:22 AM 11/15/2004, Ryuta Suzuki wrote:
>>
>>> I got the LAM/MPI subversion to compile by GCC 3.4.3 and got the
>>> following error:
>>>
>>> .... ...
>>>
>>> getbuf.c:57: error: conflicting types for 'malloc'
>>> getbuf.c:57: error: conflicting types for 'malloc'
>>> make[2]: *** [getbuf.lo] Error 1
>>>
>>> Has anybody got the same problem? It seems like gcc got confused
>>> with "extern char *malloc" but my guess is that this problem is
>>> peculiar to new GCC since I didn't have any such trouble with Intel
>>> compilers.
>>
>>
>> Has a header inclusion been omitted?
>> #include <stdlib.h>
>>
>> According to certain textbooks based on C89, extern char *malloc() is
>> correct, in spite of the requirement for the header.
>>
>>
>> Tim Prince
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/