Compile Error: fatal error: stdlib.h: No such file or directory
A simple multi-platfom 2D Animation Software for all ages!
Status: Beta
Brought to you by:
creek23
Fresh checkout gives this error while compiling on Windows:
C:/msys64/mingw64/include/c++/12.1.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
75 | #include_next <stdlib.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile.win:47: kage/data/anchor.o] Error 1
That would mean your compiler cannot find your C++ Include Path.
I'm using MSYS2 (MinGW) GCC so. My new C++ Include Path would be on:
/c/msys64/mingw64/include/c++/12.1.0/
Simply tell it to the compiler by updating the Makefile.win to include the path like the one below:
CXXFLAGS = -c -I./ -isystem /c/msys64/mingw64/include/c++/12.1.0/ pkg-config gtkmm-3.0
Haven't had any problem with GNU/Linux though.
~creek23
Anonymous
this is technically fixed -- will keep this open for future reference.