Closed feifeibear closed 3 years ago
macos don‘t have malloc.h ? this is c startard library.
https://stackoverflow.com/questions/56463049/should-mac-osx-have-a-malloc-h-file
According to this post, it is not a standard one any more.
just remove malloc.h, and compile it will be ok. if memalign fail, using malloc instead
I came across an error when compling it on my Mac.
[CC] helper.c In file included from helper.c:28: ./helper.h:13:10: fatal error: 'malloc.h' file not found
include
1 error generated. make[1]: [helper.o] Error 1 make: [all] Error 2