On Thu, 01 Jun 2023 20:29:54 -0000
ron flory via users <users@lists.fedoraproject.org> wrote:

> Results:
> hello_world.c:1:10: fatal error: stdio.h: No such file or directory
>     1 | #include <stdio.h>
>       |          ^~~~~~~~~
> compilation terminated.
> 
> -----
> Hello_world sample consists of:
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> int main(int argc, char *argv[])
> {
>         printf("Hello World\n");
>         return(0);
> }

I find at this link 
https://stackoverflow.com/questions/19580758/gcc-fatal-error-stdio-h-no-such-file-or-directory
this comment,
You can see where gcc is looking for header files by doing echo
"#include <bogus.h>" | gcc -v -x c - and examining the search paths. –
Christian Ternus Oct 25, 2013 at 3:53

It is old, and when I tried it, it didn't work.  But it might give you
an idea for things to try.

This also seems relevant,
"it seems implausible that there would be a release which generated
errors upon importing stdio"

Is the file present in /usr/include?  If it is, you could use the -I
option to point there, -I /usr/include, and see if it works.  If it
does, that indicates that it is a problem in the configuration of gcc;
it isn't looking in the system include directory.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to