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

2019-05-09 Thread Ian Lance Taylor
On Thu, May 9, 2019 at 8:21 AM wrote: > > Thanks for the reply. > Is there any automatic way to build a dynamic library that cgo-package > depends on? No, I don't think so. > I have the following line in sources of my cgo package(I have the dynamic > library libcl3go.so in cwrap folder): > //

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

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

2019-05-06 Thread Ian Lance Taylor
On Mon, May 6, 2019 at 12:37 PM wrote: > > 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 mod

[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