linux交叉编译为arm程序

CGO_ENABLED=0 GOOS=linux GOARCH=arm  go build main.go

注意了,上传到arm环境时一定要用rz命令或者先压缩再上传,如果直接用xshell sftp上传的程序会有错误Segmentation fault,原因不明,c、c++程序没有这个问题。

相关文章:

  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-07
  • 2022-12-23
  • 2021-07-19
  • 2021-07-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案