Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: please help: malloc.h



Malloc.h isn't standard C... this must be some weird glibc-ism. I have sadly seen
it done on other platforms like Tru64 as well.

The correct place to get the prototype for malloc is in stdlib.h as Andrew has stated.

Dave
On Wednesday, June 25, 2003, at 05:05PM, Andrew Pinski <email@hidden> wrote:

>use stdlib.h instead.
>
>Thanks,
>Andrew Pinski
>
>
>On Wednesday, Jun 25, 2003, at 17:31 US/Eastern, Markian Hlynka wrote:
>
>> Hi.
>>
>> I'm trying to compile some code I need to work on that was written on
>> linux.
>>
>> Right off the bat, I get:
>>
>> gcc -O3 -Wall -DPC -DLINUX -DALPHA -c -o IO.o IO.c
>> Chess.h:5: header file 'malloc.h' not found
>> cpp-precomp: warning: errors during smart preprocessing, retrying in
>> basic mode
>> make: *** [IO.o] Error 1
>>
>>
>> So, ok, malloc.h is not found... I have no clue where to go next. I'd
>> greatly appreciate any assistance!
>>
>>
>> Thanks,
>>
>> Markian
>> _______________________________________________
>> darwin-development mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/darwin-development
>> Do not post admin requests to the list. They will be ignored.
>_______________________________________________
>darwin-development mailing list | email@hidden
>Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
>Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.