使用CH582移植Lua解析器遇到問題

在使用CH582移植Lua解析器遇到報(bào)錯(cuò)

d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?./lua/lobject.o:?in?function?`numarith':
E:\CH582_LUA\obj/../lua/lobject.c:80:?undefined?reference?to?`pow'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?E:\CH582_LUA\obj/../lua/lobject.c:81:?undefined?reference?to?`floor'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?./lua/lvm.o:?in?function?`luaV_flttointeger':
E:\CH582_LUA\obj/../lua/lvm.c:122:?undefined?reference?to?`floor'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?./lua/lvm.o:?in?function?`luaV_modf':
E:\CH582_LUA\obj/../lua/lvm.c:760:?undefined?reference?to?`fmod'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?./lua/lvm.o:?in?function?`luaV_execute':
?????????????RAM:????????3464?B????????32?KB?????10.57%
E:\CH582_LUA\obj/../lua/lvm.c:1414:?undefined?reference?to?`pow'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?E:\CH582_LUA\obj/../lua/lvm.c:1476:?undefined?reference?to?`pow'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?E:\CH582_LUA\obj/../lua/lvm.c:1862:?undefined?reference?to?`floor'
d:/mounriver_studio/toolchain/risc-v?embedded?gcc/bin/../lib/gcc/riscv-none-embed/8.2.0/../../../../riscv-none-embed/bin/ld.exe:?./lua/lvm.o:?in?function?`pushclosure':
E:\CH582_LUA\obj/../lua/lvm.c:798:?undefined?reference?to?`floor'
collect2.exe:?error:?ld?returned?1?exit?status
make:?***?[makefile:56:?CH582_LUA.elf]?Error?1

搜索到的解決方案是添加編譯器參數(shù),但是MounRiver Studio應(yīng)該怎么添加編譯器參數(shù)呢?

或者MounRiver Studio可以使用MicroLIB 嗎?



image.png

您好,添加數(shù)學(xué)庫,除了需要引用math.h頭文件,還需要添加工程配置如下圖。

image.png

您嘗試參考添加數(shù)學(xué)庫的方法,添加您需要的庫。


收到,按上面的方法修改以后問題已經(jīng)解決了


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

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