CH32V307

#include "math.h"


怎么编译还出现以下提示?


d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\WCH32\TencentOS_CRV03U\obj/../User/crv_algorithm.c:561: undefined reference to `exp'

d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\WCH32\TencentOS_CRV03U\obj/../User/crv_algorithm.c:559: undefined reference to `log'

d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\WCH32\TencentOS_CRV03U\obj/../User/crv_algorithm.c:565: undefined reference to `pow'

d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\WCH32\TencentOS_CRV03U\obj/../User/crv_algorithm.c:582: undefined reference to `exp'

d:/mounriver/mounriver_studio/toolchain/risc-v embedded gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe: D:\WCH32\TencentOS_CRV03U\obj/../User/crv_algorithm.c:585: undefined reference to `exp'


Untitled_math.png这样设置就可以了。


学习了。


只有登录才能回复,可以选择微信账号登录