完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
我正在尝试使用“Max.h”库,这样我就可以做POW(双,双)和Log10(双)函数,
我曾经尝试过在“.c文件”中包含“数学h”,还包含了.l&;数学。h & gt;当我编译时,它给了我这个错误: C:CyPress 工程粘合 BeloBeld[ BeloBeld],Belo-Belo. CysNN/.M.C.:283:未定义的“POW” Cuxe2.EXE:错误:LD返回1退出状态 命令“ARME EABI GCC .exe”退出代码“1”失败。 这是从某种工具设置的吗?我不知道我做了什么,这实际上是昨天工作,然后神奇地决定停下来,给我编译错误。 如果我尝试使用Log10()函数,也会得到相同的未定义的引用错误。 只是想知道我是不是笨手笨脚地用了一个坏的键盘序列,或者做了类似的事情来禁用工具上的东西?或者这个工具做了一些自动更新并在没有我的知识的情况下破坏了一些东西(我没有手动更新任何东西) 源文件Max.h仍然存在于目录:C:程序文件(x86) CyPress PSoC创建者 3.3 PSoC创建者导入GNUARM4.93ARM无EABI 或者编译符号定义符号改变了吗?在数学.h文件本身中,有定义可能会破坏某些东西吗? 以上来自于百度翻译 以下为原文 I am trying to use the "math.h" library so I can do pow( double, double) and log10 (double) functions, I have tried #include "math.h" and also #include C:CypressProjectsBondingBLE_BondingBLE_BondingBLE_Bonding.cydsn/.main.c:283: undefined reference to `pow' collect2.exe: error: ld returned 1 exit status The command 'arm-none-eabi-gcc.exe' failed with exit code '1'. Is this from some kind of tool setting? I don't know what I did, this was actually working yesterday, then magically decided to stop and give me compile errors. I get the same undefined reference error if I try to use the log10() function as well. just wondering if some how I fat fingered a bad keyboard sequence or did something similar to disable something on the tool, ?? OR did the tool do some kind of autoupdate and break something without my knowledge ( I did not manually update anything) the source file math.h still exists in the directory: C:Program Files (x86)CypressPSoC Creator3.3PSoC Creatorimportgnuarm4.9.3arm-none-eabiinclude Or did the compile #define Symbols change? In the math.h file itself there are #defines that possibly are breaking something? |
|
相关推荐
2个回答
|
|
|
从另一个线程,我发现了这个,并尝试它是正确的答案:
在创建者转到项目-gt;建立设置-gt;链接器& gt; 将“M”(不带引号)添加到其他库中。这将将数学库“LBM.A”添加到项目中。 以上来自于百度翻译 以下为原文 from another thread, I found this and tried it and it is the correct answer: In Creator go to Project -> Build Settings -> Linker -> General Add "m" (without the quotes) into Additional Libraries. This will add the math library "Libm.a" to your project. |
|
|
|
|
|
您好!
将“m”添加到附加库(构建设置-gt;林克尔)应该解决了这个问题。 以上来自于百度翻译 以下为原文 Hi Adding the 'm' to the Additional Libraries (Build Settings->Linker) should solve the problem. |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2474 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2073 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 22:47 , Processed in 0.483035 second(s), Total 44, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
10280