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

lh mouse lh_mouse@126.com
Sun Jul 10 11:45:00 GMT 2016


See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70936.

Here removing `--with-gxx-include-dir` as well as
`--enable-version-specific-runtime-libs` fixed the problem.

------------------				 
Best regards,
lh_mouse
2016-07-10

-------------------------------------------------------------
发件人:niXman <i.nixman@autistici.org>
发送日期:2016-07-10 17:28
收件人:gcc-help
抄送:
主题:gcc-6.1, cstdlib, fatal error: stdlib.h: No such file or directory

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