Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: lovelypp on September 29, 2020, 10:00:36 PM

Title: gcc failed with fatal error: stdio.h: no such file or directory
Post by: lovelypp on September 29, 2020, 10:00:36 PM
I wirte a simplest test.c:
Code: [Select]
#include <stdio.h>
int main()
{
    printf("hello world!\n");
    return 0;
}
when compile using gcc, it complains with:
fatal error: stdio.h: no such file or directory
Title: Re: gcc failed with fatal error: stdio.h: no such file or directory
Post by: Rich on September 29, 2020, 10:52:37 PM
Hi lovelypp
Did you install  compiletc.tcz ?
Title: Re: gcc failed with fatal error: stdio.h: no such file or directory
Post by: lovelypp on September 29, 2020, 10:53:43 PM
@Rich

thanks. After install glibc_base-dev & glibc_add_lib, it solved.
Title: Re: gcc failed with fatal error: stdio.h: no such file or directory
Post by: Rich on September 29, 2020, 11:00:15 PM
Hi lovelypp
Did you install  compiletc.tcz ?
You didn't really answer the question. If you plan on compiling packages you want to install  compiletc.tcz.
Title: Re: gcc failed with fatal error: stdio.h: no such file or directory
Post by: lovelypp on September 29, 2020, 11:26:39 PM
@Rich
    I tried your method. it's the right solution.

    I commented my gcc,make, cmake,glibc,linux-header tcz,now only one compiletc.tcz needed.
thanks!
Title: Re: gcc failed with fatal error: stdio.h: no such file or directory
Post by: Rich on September 29, 2020, 11:35:33 PM
Hi lovelypp
You are welcome. :)