WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tcc failed to compile "hello world!"  (Read 3724 times)

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
tcc failed to compile "hello world!"
« on: June 07, 2010, 04: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?

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9730
Re: tcc failed to compile "hello world!"
« Reply #1 on: June 07, 2010, 04:19:12 PM »
That is in base-dev.   Will add to dep file.

Offline Xianwen Chen

  • Full Member
  • ***
  • Posts: 142
Re: tcc failed to compile "hello world!"
« Reply #2 on: June 09, 2010, 05:09:37 AM »
Thanks! I'm afraid pcc has similar problem.