在melis sdk中链接库时,有时会报以下错误:

melis链接库报错:undefined reference to ‘_close‘, ‘_fstat‘, ‘_isatty‘, ‘_lseek‘, ‘_read‘等

此时是由于,在库文件的函数里调用了一些系统函数,但是这些系统函数无法找到对应的C库所致,例如 printf()assert()open()close()read()write() 等。

将这些函数修改为所用C库中对应的函数即可。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-02-28
  • 2021-05-05
  • 2021-09-10
  • 2022-12-23
相关资源
相似解决方案