codelite如何添加外部库

wenwushuangquandexia 2018-11-30 05:49:29
使用codelite时,移植文件系统涉及到了malloc函数的使用,编译出现
undefined reference to `sbrk'
undefined reference to `_exit' .....
这些未定义的函数都是malloc函数中使用到的,请问如何将c库添加到我的工程中,哪位大侠知道了。
...全文
357 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
感谢,我用的是codelite的开发环境,这个环境应该怎么添加。请问有没有一个好的用于在nandflash上移植的文件系统推荐。
赵4老师 2018-12-01
  • 打赏
  • 举报
回复
malloc Allocates memory blocks. void *malloc( size_t size ); Routine Required Header malloc <stdlib.h> and <malloc.h>

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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