FAVE icon indicating copy to clipboard operation
FAVE copied to clipboard

malloc.h -> stdlib.h on macOS Catalina

Open prlabu opened this issue 4 years ago • 1 comments

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.

prlabu avatar Apr 17 '20 16:04 prlabu

Your method solved my problem, thanks.

colynhn avatar Jul 03 '20 09:07 colynhn