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

YuanTianyang · · 281 次点击 · 开始浏览    置顶
报错如下 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群:812540095

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