JoFrhwld / FAVE

A repository for maintaing the fave-align and fave-extract toolkits
GNU General Public License v3.0
115 stars 37 forks source link

malloc.h -> stdlib.h on macOS Catalina #48

Open prlabu opened 4 years ago

prlabu commented 4 years ago

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.

colynhn commented 4 years ago

Your method solved my problem, thanks.