I build a Go c-archive static library to use in several C/C++ programs. Building c-archives with cgo broke in a way that I don't understand in Go 1.15 and later. Building with Go 1.14 works fine. I put together a simple example here: https://github.com/willie/cgotest
What did you expect to see?
I expected to be able to build a c-archive static library with no errors.
What did you see instead?
_cgo_export.c:29:3: error: unknown type name 'writeFunc'
The text was updated successfully, but these errors were encountered: