且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

对 _sbrk 的未定义引用

更新时间:2022-04-30 23:19:35

我解决了这个问题,并将在此处发布解决方案,以便我回馈社区.函数 _sbrk 位于 ARM 的 NXP CDL 包内.包可供下载(链接适用于所有不知道的人) 这里 在子文件夹 CDL_v005/csps/lpc313x/bsps/ea3131/source 中,您将找到名为 libnosys_gnu.c 的源文件,该文件应添加到项目中并编译为对象文件,然后链接到可执行文件以及其他对象和库.

I solved this problem and will post solution here so i give something back to comunity. The function _sbrk is located inside NXP CDL package for ARM. Package is available for download (link is for all who dont know this already) here in subfolder CDL_v005/csps/lpc313x/bsps/ea3131/source you will find source file named libnosys_gnu.c which should be added to the project and compiled to object file and after that linked to executable file alongside other objects and libraries.

最良好的祝愿和很多成功.

Best wishes and a lot of success.