在使用CH582移植Lua解析器遇到报错
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
搜索到的解决方案是添加编译器参数,但是MounRiver Studio应该怎么添加编译器参数呢?
或者MounRiver Studio可以使用MicroLIB 吗?
热门产品 :
CH390:以太网控制器芯片