Quote:
Originally Posted by knc1
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: error: undefined symbol '__udivsi3'
tcc: error: undefined symbol '__umodsi3'
tcc: error: undefined symbol '__nedf2'
tcc: error: undefined symbol '__eqdf2'
tcc: error: undefined symbol '__divdf3'
tcc: error: undefined symbol '__ltdf2'
tcc: error: undefined symbol '__muldf3'
tcc: error: undefined symbol '__gedf2'
tcc: error: undefined symbol '__fixunsdfsi'
tcc: error: undefined symbol '__floatunsidf'
tcc: error: undefined symbol '__subdf3'
tcc: error: undefined symbol '__modsi3'
tcc: error: undefined 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)...