Other Help Topics :: tcc problem?
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
This has been discussed before: Search forum or
try
tcc -o hello -lstdc++-3-libc6.1-2-2.10.0 hello.c
"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?
original here.