Compiling test program in tinySIP

21 views
Skip to first unread message

Mirko Kovacevic

unread,
Oct 29, 2024, 4:21:31 PM10/29/24
to discuss-doubango
Hello,

This is my linker command:
/usr/bin/gcc  -DDEBUG_LEVEL_INFO CMakeFiles/DoubangoTest.dir/test.c.o -o DoubangoTest  -Wl,-rpath,/usr/local/lib /usr/local/lib/libtinySIP.so /usr/local/lib/libtinySAK.so /usr/local/lib/libtinyNET.so -lm

But although I provided libm, ld is complaining all the time:

/usr/bin/ld: /usr/local/lib/libtinySIGCOMP.so.0: undefined reference to `log'
/usr/bin/ld: /usr/local/lib/libtinySIGCOMP.so.0: undefined reference to `pow'
/usr/bin/ld: /usr/local/lib/libtinySIGCOMP.so.0: undefined reference to `ceil'

Of course, ceil definition is missing and ld should find it in libm.
nm /usr/local/lib/libtinySIGCOMP.so.0  | grep ceil
                 U ceil

Mirko Kovacevic

unread,
Oct 30, 2024, 6:22:17 AM10/30/24
to discuss-doubango
I switched to STATIC libs completely , it is ok now, I have full-blown test example running. Thank Duobango.
Reply all
Reply to author
Forward
0 new messages