我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在Windows机器上交叉编译linux相关代码

I have an issue when trying to compile linux specific GoLang code on my windows machine

I am using, in this case, https://github.com/hidez8891/shm pretty straight off, but the only thing i get back is ".\shm.go:10:7: undefined: shmi".

GOOS is set to linux and GOARCH is set to amd64. Do anyone have any ideas, perhaps it's not even possible to do what i am trying to do. All help would be great.

近期文章

  • 如何在Go中打开/保存文件在另一台计算机上?
  • Golang的Delve找不到位于父文件夹中的软件包
  • 传递参数时如何在调试器中运行Go二进制文件?
  • Golang映射结构映射
  • 发布文件位置
  • 在带有嵌入式接口字段的Go中正确实现继承
  • 如何在go程序中消除对wpcap.dll的需要?
  • S3签名的URL失败
  • golang.org/x/sys/windows/registry(k键)ReadSubKeyNames()返回空片
  • 调用cgo宏函数
  • 微服务消息传递
  • Docker容器未找到所需的依赖项
  • 在Go中计算逆对数范数
  • 在安卓程序里 如何从EditText里获取插入的图片
  • 在Golang中获取数据库连接的连接字符串
  • 从Go脚本连续执行tshark
  • Redigo ScanStruct错误与time.Time
  • 将项目插入表中的AWS DynamoDB Golang问题
  • Golang ParseFloat在示例中不准确
  • 我无法让golang识别带有参数的get请求

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华