Maybe cgo should build a single .o file for the same .c file. On Tuesday, January 10, 2023 at 11:21:00 AM UTC+8 Xie Zhenye wrote:
> It's caused by github.com/lufia/iostat. > > Maybe two different dependencies used 'iostat'. 'iostat; used cgo, and > produced an object file from .c file for each dependency. Linker try to > link both .o file that cause the problem. > > On Tuesday, March 23, 2021 at 12:25:17 AM UTC+8 Ian Lance Taylor wrote: > >> On Mon, Mar 22, 2021 at 7:40 AM Alex <alex....@gmail.com> wrote: >> > >> > A package you import could be using cgo, you don't have to be using it >> directly. >> >> I'll add that I think that this must be what is happening, as you >> could not get that error message in a program that doesn't use cgo >> anywhere. >> >> Ian >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8e3a6ef9-6725-4748-98e7-c16fdf9a01e0n%40googlegroups.com.