You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile this on macOS (11.5.2) but it's searching for and failing to find malloc.h:
xdrf-master make
m4 conf/linux.m4 libxdrf.m4 > libxdrf.c
gcc -O -Dlinux -c libxdrf.c
libxdrf.c:153:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make: *** [libxdrf.o] Error 1
My understanding is that malloc.h is deprecated and including stdlib.h for malloc is sufficient. Is there a workaround that would let me compile this? Or am I missing something?
The text was updated successfully, but these errors were encountered:
You're totally right - thanks so much! I just re-wrote a bunch of the #include statements and updated to address things that have changed from Warnings to Errors. I'm currently on vacation so don't have access to a Linux machine (the university turned my VPN off yesterday!!!) but the updated version I just pushed builds on my macOS machine (12.2.1) with gcc/gfort. Not tested with icc/ifort but I'm hoping it'll build fine...
I'm trying to compile this on macOS (11.5.2) but it's searching for and failing to find malloc.h:
xdrf-master make
m4 conf/linux.m4 libxdrf.m4 > libxdrf.c
gcc -O -Dlinux -c libxdrf.c
libxdrf.c:153:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
1 error generated.
make: *** [libxdrf.o] Error 1
My understanding is that malloc.h is deprecated and including stdlib.h for malloc is sufficient. Is there a workaround that would let me compile this? Or am I missing something?
The text was updated successfully, but these errors were encountered: