isyefeng 2021-01-14 14:39 采纳率: 0%
浏览 116

STM8S103如何使用sqrt函数

我在使用sqrt函数的时候STVD编译报错

#error clnk Debug\charge.lkf:1 symbol _sqrt not defined (Debug\main.o Debug\adc_driver.o )
 The command: "clnk -lH:\cosmic\Lib  -o Debug\charge.sm8 -mDebug\charge.map Debug\charge.lkf " has failed, the returned value is: 1
exit code=1.

 

我已经包含了#include <math.h>头文件还是没有效果

  • 写回答

2条回答 默认 最新

  • shareinfo2018 2022-01-17 13:23
    关注

    linker中std libraries需要勾选上float

    评论

报告相同问题?