2 posts / 0 new
Last post
lindapeng
Offline
Last seen:8 months 6 days ago
加入:2018-10-25 04:36
smartsnippets studio如何加载math库文件

你好,我在工程中需要用到数学公式计算,头文件已经加载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'

像这种问题在哪里设置处理?谢谢

Device:
CYibin
Offline
Last seen:2 months 3 weeks ago
工作人员
加入:2017-12-14 02:48
Hi

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.