Hi,

On Wed, Jul 19, 2000 at 04:03:26PM +0800, �⺮ wrote:
> 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
> 

Using -c flag, you say "don't do linking."

> when I insmoded the nc_module.o, errors happened:
> 
> ./nc_module.o: unresolved symbol __isnan
> ./nc_module.o: unresolved symbol __isnan
> ...

The trouble is, __isnan is defined in libc, _not_ in libm.  The source
name is s_isnan.c. Get it + includes and add it to your sources, it
should work. Drop me a line if more help needed.

Regards,

pa

-- 
..........................................................................
Pavel Andris                               | tel: +421 7 5941 2167
Institute of Control Theory and Robotics   | fax: +421 7 5477 6045
Slovak Academy of Sciences                 | 
Dubravska cesta 9                          | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava                     |
Slovakia                                   |
..........................................................................

"The hardest thing is to take something people don't need and make it part
of their lives."
               Sheila Hewett, vice-president for marketing and advertising
..........................................................................
-- [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/

Reply via email to