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/a/?ref=spike-organic-signature&_ts=p2cv3)   
[p2cv3]

On September 22, 2020 at 22:53 GMT, Mixo Ndleve <[email protected]> wrote:

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 _ "github.com/cvigo/go_ibm_db"

On Tue, Sep 22, 2020 at 9:46 PM Marcin Romaszewicz <[email protected]> wrote:

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 <[email protected]> wrote:

Experiencing this problem when "github.com/cvigo/go_ibm_db" is imported

../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:13:9:
 undefined: SQLSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:14:9:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:15:9:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:19:12:
 undefined: SQLSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:20:12:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:21:12:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:22:12:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:23:12:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:24:12:
 undefined: SQLUSMALLINT
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:25:12:
 undefined: SQLUINTEGER
../../../go/pkg/mod/github.com/lunny/[email protected]/api/api.go:25:12:
 too many errors

--
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 [email protected].
To view this discussion on the web visit 
[https://groups.google.com/d/msgid/golang-nuts/bd1c2b60-8459-46d8-a022-0527f0fba150n%40googlegroups.com](https://groups.google.com/d/msgid/golang-nuts/bd1c2b60-8459-46d8-a022-0527f0fba150n%40googlegroups.com?utm_medium=email&utm_source=footer).

--
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 [email protected].
To view this discussion on the web visit 
[https://groups.google.com/d/msgid/golang-nuts/CAFiZK1w2mB6UDaKBELxA-yZn1MTmV8%3Dw-%2Bg5JhFiDgnjTn5b7w%40mail.gmail.com](https://groups.google.com/d/msgid/golang-nuts/CAFiZK1w2mB6UDaKBELxA-yZn1MTmV8%3Dw-%2Bg5JhFiDgnjTn5b7w%40mail.gmail.com?utm_medium=email&utm_source=footer).

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/c-64693-kfekqpuu-5nan9y%3D1lzmhpo%402.gethop.com.

Reply via email to