Hi, I am seeing a compiler error when building a shared c library from a go program. The error is:
GO111MODULE=on go build -buildmode=c-shared -o mylib.so myfile.go # runtime/cgo cc1: warnings being treated as errors _cgo_export.c:6: warning: ignoring #pragma GCC diagnostic _cgo_export.c:7: warning: ignoring #pragma GCC diagnostic _cgo_export.c:8: warning: ignoring #pragma GCC diagnostic CGO_ENABLED=1 is set as well. This is using go 1.13. Any ideas? Thanks, Aaron -- 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/09123e31-2032-42c0-b449-70d783ddbcecn%40googlegroups.com.