FAVE
FAVE copied to clipboard
malloc.h -> stdlib.h on macOS Catalina
Installing HTK on macOS Catalina. Following the steps outlined in HTK on OS X, error arises the make all
step...
strarr.c:21:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make[1]: *** [strarr.o] Error 1
make: *** [HTKLib/HTKLib.a] Error 1
The fix, for me at least: replace line 21 (#include <malloc.h>
) of ./HTKLib/strarr.c with #include <stdlib.h>
I can submit a pull request if that will help, just didn't think it's worth it for the small issue.
Your method solved my problem, thanks.