Official NuTyX forums

Help => Programming => Topic started by: Ferran on Mon Mar 06 15:54:28 2023

Title: [SOLVED] gcc "fatal error: stdio.h" on NuTyX
Post by: Ferran on Mon Mar 06 15:54:28 2023
Hello.

Since a few days i'm learning C language and all worked ok, but when I upgraded NutyX reciently I have problems to compile my C files for this:

Code: [Select]
ferran [ ~/Plantilles/projecte ]$ gcc -o fitxer fitxer.c
fitxer.c:12:10: fatal error: stdio.h: El fitxer o directori no existeix
   12 | #include <stdio.h>

I search stdio.h and all seems ok on include...

Code: [Select]
ferran [ ~/Plantilles/projecte ]$ sudo find / -name stdio.h
[sudo] contrasenya per a ferran:
/home/ferran/gcc/libstdc++-v3/include/tr1/stdio.h
/home/ferran/gcc/libstdc++-v3/include/c_compatibility/stdio.h
/home/ferran/gcc/libssp/ssp/stdio.h
/home/ferran/gcc/fixincludes/tests/base/rtldef/stdio.h
/home/ferran/gcc/fixincludes/tests/base/stdio.h
find: ?/run/user/1000/gvfs?: S?ha denegat el perm?s
/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/ssp/stdio.h
/usr/include/c++/12.2.0/tr1/stdio.h

I tried too to reinstall gcc and glibc and occurs the same  :'(

Some idea to fix it ?

Thank you in advance.
Title: Re: gcc "fatal error: stdio.h" on NuTyX
Post by: Thierry on Tue Mar 07 07:15:07 2023
http://nutyx.org/en/faq#7
Title: Re: gcc "fatal error: stdio.h" on NuTyX
Post by: Ferran on Thu Mar 09 17:29:47 2023
Tout avait bien Thierry, merci beaucoup

Now works fine. Thank you.
Title: Re: [SOLVED] gcc "fatal error: stdio.h" on NuTyX
Post by: Thierry on Sun Mar 12 22:33:33 2023
Thank you for marking [SOLVED]