A couple of tweaks to make some code run
-
12:47:00 pm on March 14, 2010 | # |
To fix this error:
error: malloc.h: No such file or directoryosx does not support
malloc.h, instead usestdlib.h. I did this by replacing#include <malloc.h>in all the .c files with:#if !defined(__APPLE__)
#include <malloc.h>
#else
#include <stdlib.h>
#endifMissing libraries:
error: sndfile.h: No such file or directoryI installed this library using macports:
sudo port install libsndfileAnd then added the paths to macports libraries to the Makefile:
INCLUDE = -I/opt/local/include
LIBRARY = -L/opt/local/lib