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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux