ERROR/BUG合集记录

发现自己经常遇到似曾相识的bug,却记不起来上一次是如何修复的。此文章用来记录自己的常见bug,原因,以及是怎么修好的。

  1. linker command failed: linking出了问题,这里是因为register_all()的declaration和definition是分开的,definition所在的object file(.o)在makefile中没有作为source file被链接。(我使用的 +=xx.o 不知道为什么失效了)

Undefined symbols for architecture x86_64: “register_all()”,
referenced from:
_main in test_accuracy-0f5cb0.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code
1 (use -v to see invocation) make: *** [test_accuracy] Error 1

  1. 这是从stack overflow找到的Error 127的解释:Error 127 means one of two things: file not found; the path you’re using is incorrect. 经过排查,这是因为之前make生成的test_accuracy没有被放在 ./bin/ 目录下面。
    **总结:**遇到Error 127可能是由于某个path不正确,导致需要的文件无法被找到。

/bin/sh: test_accuracy: command not found make: ***
[exp_expo_v1_accuracy.txt] Error 127

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值