gcc-6.1, cstdlib, fatal error: stdlib.h: No such file or directory

niXman i.nixman@autistici.org
Sun Jul 10 09:29:00 GMT 2016


Hi,

I have successfully built gcc-6.1 as mingw-w64 target, but I had 
problems use it.

When you try to compile the following code:
#include <cstdlib>
int main() {}

I get the following error:
C:/mingw64/x86_64-w64-mingw32/include/c++/cstdlib:75:25: fatal error: 
stdlib.h: No such file or directory
  #include_next <stdlib.h>


This error does not occur when using earlier versions of gcc (4.9.3, 
5.3.0).
What I am doing wrong?


Thanks.



More information about the Gcc-help mailing list