mac下go build没问题,编译成windows的exe时报错。

YuanTianyang · · 2059 次点击 · 开始浏览    置顶
这是一个创建于 的主题,其中的信息可能已经有所发展或是发生改变。

报错如下 twisted@192 informationRecord % go build twisted@192 informationRecord % CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build github.com/godror/godror ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:452:56: undefined: VersionInfo ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:461:56: undefined: VersionInfo ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:479:19: undefined: VersionInfo ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:480:19: undefined: VersionInfo ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:481:30: undefined: ObjectType ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:482:31: undefined: Event ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:482:42: undefined: SubscriptionOption ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:482:64: undefined: Subscription ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:483:10: undefined: StartupMode ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:484:11: undefined: ShutdownMode ../../../../go/pkg/mod/github.com/godror/godror@v0.20.0/orahlp.go:484:11: too many errors

有疑问加站长微信联系(非本文作者)

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

2059 次点击  ∙  1 赞  
加入收藏 微博
2 回复  |  直到 2020-10-29 10:21:00
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传