driver-go icon indicating copy to clipboard operation
driver-go copied to clipboard

在Macos系统下链接错误

Open jetgeng opened this issue 1 year ago • 2 comments

环境描述:

  1. 操作系统 Macos 13.1 (22C65)
  2. driver-go: 3.5.0
  3. go: go1.20.2 darwin/amd64
  4. clang: 14.0.0 (clang-1400.0.29.202)
  5. Tdengine client: 3.0.4.1

问题描述

按照文档导入库进行编译的时候, 到链接阶段报错:

# github.com/taosdata/driver-go/v3/wrapper
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:270:99: could not determine kind of name for C.sizeof_struct_tmq_topic_assignment
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:298:2: could not determine kind of name for C.tmq_free_assignment
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:260:16: could not determine kind of name for C.tmq_get_topic_assignment
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:290:15: could not determine kind of name for C.tmq_get_vgroup_offset
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:285:15: could not determine kind of name for C.tmq_offset_seek
~/go/1.20.2/pkg/mod/github.com/taosdata/driver-go/[email protected]/wrapper/tmq.go:256:18: could not determine kind of name for C.tmq_topic_assignment

是在 image 这个阶段出错!

jetgeng avatar Jun 13 '23 22:06 jetgeng

https://github.com/taosdata/driver-go#remind

sangshuduo avatar Jun 14 '23 01:06 sangshuduo

@sangshuduo 好的,我再试试.

jetgeng avatar Jun 14 '23 01:06 jetgeng