GCC fatal error: stdio.h: No such file or directory

前端 未结 5 1626
清酒与你
清酒与你 2020-11-28 22:15

I\'m trying to compile a program in C on OS X 10.9 with GCC 4.9 (experimental). For some reason, I\'m getting the following error at compile time:

gcc: fatal         


        
5条回答
  •  孤城傲影
    2020-11-28 22:39

    I know my case is rare, but I'll still add it here for someone who troubleshoots it later. I had a Linux Kernel module target in my Makefile and I tried to compile my user space program together with the kernel module that doesn't have stdio. Making it a separate target solved the problem.

提交回复
热议问题