[MITgcm-support] compilation error- setdir.c:4:20: fatal error: stdlib.h: No such file or directory
Kalyan Shrestha
kalyansh at uw.edu
Tue Dec 3 13:07:16 EST 2019
Hi all,
I am new to MITgcm and while trying to compile the code I encounter the
below error.
Update AD_CONFIG.h and make ./mitgcmuv
make -f Makefile ./mitgcmuv
gcc -O0 -mcmodel=medium -DWORDLENGTH=4 -DNML_TERMINATOR -DHAVE_SYSTEM
-DHAVE_FDATE -DHAVE_ETIME_SBR -DHAVE_FLUSH -c setdir.c
setdir.c:4:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
make[1]: *** [setdir.o] Error 1
make: *** [fwd_exe_target] Error 2
For more information, there was no problem generating Makefile using
genmake2, however genmake.log also contains the below errors.
gcc -O0 -mcmodel=medium -c genmake_tc_1.c
genmake_tc_1.c:2:20: fatal error: stdlib.h: No such file or directory
#include <stdlib.h>
^
compilation terminated.
Thanks,
Kalyan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20191203/bd23e793/attachment.html>
More information about the MITgcm-support
mailing list