Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: Xianwen Chen on June 07, 2010, 07:09:47 PM

Title: tcc failed to compile "hello world!"
Post by: Xianwen Chen on June 07, 2010, 07:09:47 PM
tcc failed to compile this hello world program:

Code: [Select]
#include <stdio.h>
 
int main(void) {
   printf("Hello, world!\n");
   return 0;
}

The error code is:

Code: [Select]
tcc: file '/usr/lib/crt1.o' not found
tcc: file '/usr/lib/crti.o' not found

Are crt1.o and crti.o missing because of lack of linking, or missing of dependency of tcc?
Title: Re: tcc failed to compile "hello world!"
Post by: Jason W on June 07, 2010, 07:19:12 PM
That is in base-dev.   Will add to dep file.
Title: Re: tcc failed to compile "hello world!"
Post by: Xianwen Chen on June 09, 2010, 08:09:37 AM
Thanks! I'm afraid pcc has similar problem.