Author Topic: [SOLVED] gcc "fatal error: stdio.h" on NuTyX  (Read 4594 times)

Ferran

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
  • GNU/Linux NuTyX 23.01 Xfce4
[SOLVED] gcc "fatal error: stdio.h" on NuTyX
« 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.
« Last Edit: Thu Mar 09 17:38:00 2023 by Ferran »
NuTyX c'est Ma-GNU-fiQ

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: gcc "fatal error: stdio.h" on NuTyX
« Reply #1 on: Tue Mar 07 07:15:07 2023 »

Ferran

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
  • GNU/Linux NuTyX 23.01 Xfce4
Re: gcc "fatal error: stdio.h" on NuTyX
« Reply #2 on: Thu Mar 09 17:29:47 2023 »
Tout avait bien Thierry, merci beaucoup

Now works fine. Thank you.
NuTyX c'est Ma-GNU-fiQ

Thierry

  • Administrator
  • Hero Member
  • *****
  • Posts: 706
  • Karma: +13/-0
  • Gender: Male
    • NuTyX distribution
Re: [SOLVED] gcc "fatal error: stdio.h" on NuTyX
« Reply #3 on: Sun Mar 12 22:33:33 2023 »
Thank you for marking [SOLVED]