数学库函数问题

laiyh 2010-01-24 05:50:32
brew应用程序进行交叉编译时,C库中的数学函数,在助手函数中没有对应函数,如sin,cos等,这些都要自己去实现吗?请教有经验的高手和楼主指点,折腾好几天了,编译时总是如下提示:
ror: L6265E: Non-RWPI Section libspace.o(.bss) cannot be assigned to PI Exec region ER_ZI.
Error: L6265E: Non-RWPI Section stdio.o(.bss) cannot be assigned to PI Exec region ER_ZI.
Error: L6248E: libspace.o(.text) in PI region 'ER_RO' cannot have address type relocation to __libspace_start in PI region 'ER_ZI'.
Error: L6248E: _main_redirect.o(.text) in PI region 'ER_RO' cannot have address type relocation to __stderr in PI region 'ER_ZI'.
Error: L6248E: _main_redirect.o(.text) in PI region 'ER_RO' cannot have address type relocation to __stdin in PI region 'ER_ZI'.
Error: L6248E: _main_redirect.o(.text) in PI region 'ER_RO' cannot have address type relocation to __stdout in PI region 'ER_ZI'.
Error: L6248E: stdio.o(.text) in PI region 'ER_RO' cannot have address type relocation to .bss$2 in PI region 'ER_ZI'.
Error: L6248E: stdio.o(.text) in PI region 'ER_RO' cannot have address type relocation to .bss$2 in PI region 'ER_ZI'.
Error: L6248E: fflush.o(.text) in PI region 'ER_RO' cannot have address type relocation to __stdin in PI region 'ER_ZI'.
Finished: 0 information, 0 warning and 9 error messages.
...全文
1939 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
bjamosgavin 2010-04-06
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 sxcnfly 的回复:]
引用 3 楼 kuangyeren_ai 的回复:
是啊,要重写的。

楼上二位还停留在Brew2.x时代,Brew3.x已经提供了FSIN, FCOS助手函数,呵呵。
[/Quote]

256*FCOS(90)= -114
这个函数根本不准确!!你没试过吗??
sxcnfly 2010-01-26
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 kuangyeren_ai 的回复:]
是啊,要重写的。
[/Quote]
楼上二位还停留在Brew2.x时代,Brew3.x已经提供了FSIN, FCOS助手函数,呵呵。
路飞-总裁 2010-01-25
  • 打赏
  • 举报
回复
是啊,要重写的。
  • 打赏
  • 举报
回复
要自己重写的
sxcnfly 2010-01-24
  • 打赏
  • 举报
回复
当然有的FSIN,FCOS就是,不能用标准C库的任何函数,你这个编译错误是地址无法重定位导致的。

2,851

社区成员

发帖
与我相关
我的任务
社区描述
本论坛以AI、WoS 、XR、IoT、Auto、生成式AI等核心板块组成,为开发者提供便捷及高效的学习和交流平台。 高通开发者专区主页:https://qualcomm.csdn.net/
人工智能物联网机器学习 技术论坛(原bbs) 北京·东城区
社区管理员
  • csdnsqst0050
  • chipseeker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧