This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc-6.1, cstdlib, fatal error: stdlib.h: No such file or directory
- From: niXman <i dot nixman at autistici dot org>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sun, 10 Jul 2016 12:28:55 +0300
- Subject: gcc-6.1, cstdlib, fatal error: stdlib.h: No such file or directory
- Authentication-results: sourceware.org; auth=none
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.