你好,我在工程中需要用到数学公式计算,头文件已经加载math.h文件了,但是编译时报错:\DA1468x_DA15xxx_SDK_1.0.12.1078\projects\dk_apps\demos\pxp_reporter\DA14683-00-Debug_QSPI/../ms5611.c:327: undefined reference to `log'
You can add it in Properties -> C/C++ Build -> Settings -> Cross ARM C Linker -> Libraries. In the "Libraries(-l)" region, add -lm flag (type m in this case). Then it should work.
Hi
You can add it in Properties -> C/C++ Build -> Settings -> Cross ARM C Linker -> Libraries. In the "Libraries(-l)" region, add -lm flag (type m in this case). Then it should work.