Quick guess, the dependencies the CGo in that library tries to link with are
not the correct version and as such lack some definitions? Try updating the C
dependency source if possible to a later or corresponding version, if that
makes sense?
[Joop Kiefte - Chat @
Spike](https://spikenow.com/r
FiloSottile/musl-cross/musl-cross is set up. (
https://subscription.packtpub.com/book/application_development/9781789138412/app02/app02lvl1sec98/cross-compiling-for-linux-with-cgo
)
With it we are able to cross compile for windows and linux from darwin, the
problem arises as soon as we import _ "
Your compiler environment for C code is still building for Darwin, most
likely. You need to set up a cross compiler and use cgo (
https://golang.org/cmd/cgo/). $CC should invoke your cross compiler.
On Tue, Sep 22, 2020 at 11:19 AM Mixo Ndleve wrote:
> Experiencing this problem when "github.com/
Experiencing this problem when "github.com/cvigo/go_ibm_db" is imported
../../../go/pkg/mod/github.com/lunny/godbc@v0.0.0-20131220142036-57f94ee1eb13/api/api.go:13:9:
undefined: SQLSMALLINT
../../../go/pkg/mod/github.com/lunny/godbc@v0.0.0-20131220142036-57f94ee1eb13/api/api.go:14:9:
undefine