Menu

#133 Compile Error: fatal error: stdlib.h: No such file or directory

0.0.x (Installers)
open
windows (1)
2022-12-29
2022-12-19
No

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

Discussion

  • Mj Mendoza IV

    Mj Mendoza IV - 2022-12-29
    • assigned_to: Mj Mendoza IV
    • Release: 0.6.x (Revamp Zoom) --> 0.0.x (Installers)
     
  • Mj Mendoza IV

    Mj Mendoza IV - 2022-12-29

    this is technically fixed -- will keep this open for future reference.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB