On Sun, Dec 26, 2021 at 3:45 PM Peter W <peter.w456...@gmail.com> wrote: > > I am trying to load, call and unload multiple go libs which are built with > -buildmode c-shared in a c problem, it’s doable on windows, Linux and macOS ? > Also I see -buildmode shared removal was rejected, what about -buildmode > archive?
You can't safely unload a Go DLL built with -buildmode=c-shared. That is not supported at all. Sorry. Loading multiple Go DLLs built with -buildmode=c-shared ought to work on ELF based systems like Linux. I don't know whether it will work on Windows or macOS. Nothing is happening to -buildmode=archive. Or, for that matter, -buildmode=c-archive. It's fine to link against as many -buildmode=c-archive archives as you like. 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/CAOyqgcX2_RPg9zDXVBBe1_JpDMSFzevzajxe7CA4gpwoBhvg_w%40mail.gmail.com.