Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - floating point emulation on arm: (3 Items)
   
floating point emulation on arm  
Hello,

I have some code that I have been running on x86 targets that use the function fabs().  This code is in a static library
.

I am trying to compile the static library for an ARM little endian processor.
The library compiles fine, but when I link it to my application, I get an error that the fabs() function is undefined.

I know that most ARM9 processors do not have a floating point unit, but I thought there was support for emulation of 
floating point math.

Am I missing a library?

Thanks,
- Mike
Re: floating point emulation on arm  
Hello Mike,
fabs() requires libm.
Use the -l m option to qcc to link against this library.
Regards,
Yuriy
Re: floating point emulation on arm  
Thanks,

I just realized that I was linking libm into the static library instead of the application.

Thanks,
- Mike