这个错误提示是在编译链接时出现的,表明编译器找不到 math.h 中的 floor 函数的实现。

这个问题可能是由于缺少数学库链接导致的。在编译链接时应该指定链接 math 库,例如:

gcc -o myprog myprog.c -lm

其中,-lm 参数会链接数学库 libm.so。

如果使用 Vitis 进行编译链接,可以在工程设置中添加 math 库链接选项,例如:

-lm

同时,需要确保在源代码中包含 math.h 头文件,例如:

#include <math.h>

如果仍然出现这个错误,可能是因为 math 库未安装或未正确配置。可以尝试重新安装 math 库并重新配置链接选项。

FAXU7EVvivido_testaxi_gpioaxi_darknetdarknetDebugsrcactivationsh21 undefined reference to floor vitis使用的mathh相关的函数均报错了

原文地址: https://www.cveoy.top/t/topic/efEx 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录