WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Xianwen Chen

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

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: tcc failed to compile "hello world!"
« Reply #1 on: June 07, 2010, 07: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, 08:09:37 AM »
Thanks! I'm afraid pcc has similar problem.