我添加 传感器厂商给的算法文件后出现一堆报错,无法编译,编译信息展示如下
Code: Select all
imualgo_axis9.c:(.text.qst_fusion_init+0x3e): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_init+0xe2): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_init+0x1c6): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_init+0x222): undefined reference to `atan2f'
imualgo_axis9.c:(.text.qst_fusion_init+0x26c): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_init+0x2da): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_init+0x346): undefined reference to `sqrtf'
./libs\libimualgo_axis9.a(imualgo_axis9.o): In function `qst_fusion_update':
imualgo_axis9.c:(.text.qst_fusion_update+0x5e): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0x8e): undefined reference to `atan2f'
imualgo_axis9.c:(.text.qst_fusion_update+0xc0): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0xcc): undefined reference to `asinf'
imualgo_axis9.c:(.text.qst_fusion_update+0x172): undefined reference to `asinf'
imualgo_axis9.c:(.text.qst_fusion_update+0x17c): undefined reference to `atan2f'
imualgo_axis9.c:(.text.qst_fusion_update+0x192): undefined reference to `atan2f'
imualgo_axis9.c:(.text.qst_fusion_update+0x23c): undefined reference to `cosf'
imualgo_axis9.c:(.text.qst_fusion_update+0x244): undefined reference to `sinf'
imualgo_axis9.c:(.text.qst_fusion_update+0x24c): undefined reference to `sinf'
imualgo_axis9.c:(.text.qst_fusion_update+0x254): undefined reference to `cosf'
imualgo_axis9.c:(.text.qst_fusion_update+0x25c): undefined reference to `sinf'
imualgo_axis9.c:(.text.qst_fusion_update+0x264): undefined reference to `cosf'
imualgo_axis9.c:(.text.qst_fusion_update+0x35c): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0x390): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0x3ca): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0x400): undefined reference to `sqrtf'
imualgo_axis9.c:(.text.qst_fusion_update+0x484): undefined reference to `sqrtf'