erich666 / GraphicsGems

Code for the "Graphics Gems" book series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gemsII compilation issue

nyotis opened this issue · comments

quantizer.c:25:10: fatal error: 'malloc.h' file not found in GraphicsGems/gemsii/quantizer.c
commenting out #include <malloc.h> (#include <stdlib.h> is already there)
triggers a linking error ld: symbol(s) not found for architecture x86_64

gcc version 4.8.2 (MacPorts gcc48 4.8.2_0)

Looks like malloc.h is deprecated. I'll go ahead and take out malloc.h and replace with stdlib.h throughout the code.