在ch32f103c8t6单片机编程时,无法使用这两个函数,报错
16:20:26 **** Incremental Build of configuration obj for project CH32F103C8T6ttt ****
make -j8 all
c:/应用安装/沁恒开发环境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/应用安装/沁恒开发环境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(lib_a-w_fmod.o): in function `fmod':
w_fmod.c:(.text.fmod+0x50): undefined reference to `__errno'
c:/应用安装/沁恒开发环境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/应用安装/沁恒开发环境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp\libm.a(lib_a-w_sqrt.o): in function `sqrt':
w_sqrt.c:(.text.sqrt+0x3a): undefined reference to `__errno'
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:56: CH32F103C8T6ttt.elf] Error 1
16:20:26 Build Failed. 3 errors, 0 warnings. (took 352ms)
已经包含了math.h文件,但是无法使用,编译软件MSR,软件最新版,其他参数默认,使用全英文目录测试也一样