WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: C Programming: fatal error: stdio.h: No such file or directory  (Read 5438 times)

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Hi team,

Any idea what is missing in this? Error message is highlighted below

Quote
tc@box:~/c$ cat hello.c
#include<stdio.h>

main()
{
    printf("Hello World");

}
tc@box:~/c$ gcc hello.c
hello.c:1:18: fatal error: stdio.h: No such file or directory
compilation terminated.
tc@box:~/c$ ls -h
total 4
-rw-r--r--    1 tc staff         58 Apr 20 23:36 hello.c
tc@box:~/c$ df -h | grep gcc
/dev/loop44             756.0K    756.0K         0 100% /tmp/tcloop/gcc_libs
/dev/loop45               1.2M      1.2M         0 100% /tmp/tcloop/gcc_libs-dev
/dev/loop46             896.0K    896.0K         0 100% /tmp/tcloop/gcc_base-dev
/dev/loop47              27.9M     27.9M         0 100% /tmp/tcloop/gcc
tc@box:~/c$

Thanks

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: C Programming: fatal error: stdio.h: No such file or directory
« Reply #1 on: April 20, 2017, 12:12:22 PM »
Load compiletc.tcz.

Offline Adam

  • Full Member
  • ***
  • Posts: 121
Re: C Programming: fatal error: stdio.h: No such file or directory
« Reply #2 on: April 20, 2017, 10:37:00 PM »
Load compiletc.tcz.
Thanks Gerald. It works!  :)