This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 7.2.0 failed with cstdlib:75:15: fatal error: stdlib.h: No such file or directory on a hello-world program


On 13 February 2018 at 09:30, Xi Ruoyao wrote:
> I think `--with-native-system-header-dir=/home/linuxbrew/.linuxbrew/include`
> causes the problem.

Yes probably. stdlib.h doesn't come from GCC, but it must have been
present when GCC was built.

You need to ensure you have C library headers present, that's not
GCC's responsibility, it's yours.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]