編程時無法使用fmod,sqrt函數(shù)

在ch32f103c8t6單片機編程時,無法使用這兩個函數(shù),報錯


16:20:26 **** Incremental Build of configuration obj for project CH32F103C8T6ttt ****

make -j8 all?

c:/應(yīng)用安裝/沁恒開發(fā)環(huán)境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/應(yīng)用安裝/沁恒開發(fā)環(huán)境/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:/應(yīng)用安裝/沁恒開發(fā)環(huán)境/mounriver_studio/toolchain/arm-none-eabi-gcc/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: c:/應(yīng)用安裝/沁恒開發(fā)環(huán)境/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)


已經(jīng)包含了math.h文件,但是無法使用,編譯軟件MSR,軟件最新版,其他參數(shù)默認,使用全英文目錄測試也一樣


您好,請在如圖所示位置添加數(shù)學庫鏈接,然后點擊重新編譯。image.png


只有登錄才能回復(fù),可以選擇微信賬號登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频