View Single Post
Old 08-12-2012, 10:57 AM   #183
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
When I use "tcc-static" on my kindle, while doing a static build, I get this:

[root@kindle us]# tccmake parmtest -static
tcc: error: undefined symbol 'exit'
tcc: error: undefined symbol 'printf'

What do I need to link to it? (No time to RTFM the KeK stuff right now)
Using tcc-repo-top:

Well, printf is easy, <stdio.h>
One of the ones that at least tcc-dynamic mishandles (it can't find stddef.h any longer).

Not sure about the "exit" one.
The library symbol names are things like _at_exit and _fini but maybe there is (or should be) an 'exit'.

Does tcc do:
tcc -E
?
Maybe that would help track it down.

Last edited by knc1; 08-12-2012 at 10:59 AM.
knc1 is offline   Reply With Quote