I am programing a real-time application based on rtlinux1.1.
I failed in using some fp functions such as asin(),sqrt() in my rt module.
I named the source file nc_module.c, and I tried to link the math library like this:
nc_module_tmp.o: nc_module.c
$(CC) ${INCLUDE} ${CFLAGS} -c -o nc_module_tmp.o nc_module.c
nc_module.o: nc_module_tmp.o
ld -r -static -o nc_module.o nc_module_tmp.o -L/usr/lib -lm
In fact, I just imitated a example application, I donot exactly know why I can not
simply do like this:
nc_module.o: nc_module.c
$(CC) ${INCLUDE} ${CFLAGS} -c -o nc_module_tmp.o nc_module.c-lm
when I insmoded the nc_module.o, errors happened:
./nc_module.o: unresolved symbol __isnan
./nc_module.o: unresolved symbol __isnan
...
If I donot use asin() and sqrt(), the errors disappear. Strangely, it is ok to use
sin(), it really made me at a loss. I guess maybe it is because I did not insmod
rtl_fpsched.o first, but rtlinux1.1.tgz did not provide it.
My program really needs to use math functions like asin(),sqrt()..., thanks for your
help!
yours
A.Han
-----------------------------------------------
163�����ʾ֣�����������Email����
http://www.163.net
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/