Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: tcc problem?, cannot create the binary executable< Next Oldest | Next Newest >
Martin2 Offline





Group: Members
Posts: 22
Joined: Nov. 2003
Posted: Nov. 30 2003,16:58 QUOTE

I wrote this hello.c:

===============
#include<tcclib.h>

int main() {
printf("Hello World!\n");
}
===============

I can run it with the:
tcc -run hello.c

but the:
tcc -o hello hello.c

generates the following errors:
tcc: undefined symbol '__libc_start_main'
tcc: undefined symbol 'printf'

Can you help?

Martin
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Nov. 30 2003,20:45 QUOTE

This has been discussed before: Search forum or
try
tcc -o hello -lstdc++-3-libc6.1-2-2.10.0 hello.c
Back to top
Profile PM WEB 
Martin2 Offline





Group: Members
Posts: 22
Joined: Nov. 2003
Posted: Nov. 30 2003,21:12 QUOTE

"This has been discussed before: Search forum or
try
tcc -o hello -lstdc++-3-libc6.1-2-2.10.0 hello.c"

It worked, thank you very much! Unfortunately
the search does not work, I looked for "tcc" - no luck
with the older discussion. Do you have a link?
Back to top
Profile PM 
2 replies since Nov. 30 2003,16:58 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: tcc problem?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code