Re: [go-nuts] Using cgo with go modules

2019-05-09 Thread grubian . euhen
Thanks for the reply. Is there any automatic way to build a dynamic library that cgo-package depends on? I have the following line in sources of my cgo package(I have the dynamic library *libcl3go.so* in *cwrap* folder): // #cgo LDFLAGS: -Lcwrap/ -lcl3go When I use `go get ` or `go build ` I

[go-nuts] Using cgo with go modules

2019-05-06 Thread grubian . euhen
Hello, I am trying to adopt my cgo package with go modules. The cgo project I mentioned above is built using simple Makefile so that I obtain external shared library(.so on Unixes and .dll on Windows) to link external applications(from other modules) with. When I try to use this module from the