I am using the IQmath library When I am using parameters for function(float to _IQ conversion) as variables ,it gives following error :
- undefined reference to `__aeabi_fmul'
- undefined reference to `__aeabi_f2iz'
code:
int main(void)
{
_iq24 l,m;
float b=3.3, c=4.5;
l = _IQ24(b);
m = _IQ24(c);
}
whereas below code works where I am using constants instead of variables :
int main(void)
{
_iq24 l,m;
l = _IQ24(3.3);
m = _IQ24(4.5);
}
Also, no error occurs if I use variables as long datatype .