/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>" Error code 1

Jonathan Chen jonc at chen.org.nz
Fri Feb 25 22:39:38 GMT 2005


On Fri, Feb 25, 2005 at 10:51:01PM +0100, Michael Bohn wrote:

[...]
> In file included from utils.c:28:
> /usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.h>"
> *** Error code 1
> 
> Stop in /home/mib/tac_plus-4.4beta2.
> bash-2.05b# pwd
> /home/mib/tac_plus-4.4beta2
> bash-2.05b# 
> 
> Is there any way to fix this problem ???

Yes. Do what the error message says. Replace malloc.h in the source
with stdlib.h.
-- 
Jonathan Chen <jonc at chen.org.nz>
----------------------------------------------------------------------
                                                          Jesus saves.
                                                       Allah forgives.
                             Cthulu thinks you'd make a nice sandwich.


More information about the freebsd-questions mailing list