Help > Programming

[SOLVED] gcc "fatal error: stdio.h" on NuTyX

(1/1)

Ferran:
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: ---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>

--- End code ---

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


--- Code: ---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

--- End code ---

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

Some idea to fix it ?

Thank you in advance.

Thierry:
http://nutyx.org/en/faq#7

Ferran:
Tout avait bien Thierry, merci beaucoup

Now works fine. Thank you.

Thierry:
Thank you for marking [SOLVED]

Navigation

[0] Message Index

Go to full version