View Single Post
Old 05-17-2016, 07:01 PM   #230
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by knc1 View Post
Try including libm in the link ( -lm ) - those names look like libm names (IIRC - I didn't look before I posted).
As I mentioned previously, that was the FIRST thing I tried. But just to be sure, I did it again:
PHP Code:
(armv4l:1) /home/tcc-0.9.26 $ ./tcc -static -lm -Iinclude -o ex1 examples/ex1.c
tcc
errorundefined symbol '__udivsi3'
tccerrorundefined symbol '__umodsi3'
tccerrorundefined symbol '__nedf2'
tccerrorundefined symbol '__eqdf2'
tccerrorundefined symbol '__divdf3'
tccerrorundefined symbol '__ltdf2'
tccerrorundefined symbol '__muldf3'
tccerrorundefined symbol '__gedf2'
tccerrorundefined symbol '__fixunsdfsi'
tccerrorundefined symbol '__floatunsidf'
tccerrorundefined symbol '__subdf3'
tccerrorundefined symbol '__modsi3'
tccerrorundefined symbol '__divsi3'

(armv4l:1) /home/tcc-0.9.26 
Again, it builds and runs apps just fine (but not on the K1) if I leave out the "-static" (and no need for "-lm" either)...

Last edited by geekmaster; 05-17-2016 at 07:04 PM.
geekmaster is offline   Reply With Quote