|
包含math.h后,在程序中调用了sinf,cosf,tanf等,
#include "./math.h"
double GetSinAvg(uint *num,uint len)
{
double sum=0.0;
for(uint i=0;i<len;i++)
{
sum+=sin(*(num+i)*M_PI/180.0);
}
return sum/len;
}
编译时总提示:
Error 1 R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in d:/program files/atmel/avr studio 5.0/avr toolchain/bin/../lib/gcc/avr/4.5.1/avrxmega7\libgcc.a(_mul_sf.o) /home/tools/hudson/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/square.S 43 1 DataCollector
Error 2 R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in d:/program files/atmel/avr studio 5.0/avr toolchain/bin/../lib/gcc/avr/4.5.1/avrxmega7\libgcc.a(_mul_sf.o) /home/tools/hudson/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S 59 1 DataCollector
Error 3 R_AVR_13_PCREL against symbol `__mulsf3' defined in .text section in d:/program files/atmel/avr studio 5.0/avr toolchain/bin/../lib/gcc/avr/4.5.1/avrxmega7\libgcc.a(_mul_sf.o) /home/tools/hudson/workspace/avr8-gnu-toolchain/src/avr-libc/libm/fplib/fp_powsodd.S 69 1 DataCollector
不知什么问题,请高手帮忙解决,谢谢。 |
|