[go-nuts] Re: Using go to write plugins for a C host application

2016-11-20 Thread ebw
The following answer to a similar question answers how to do, what I want to do without altering commands issued by go build -x. Maybe I should had rephrased my question. https://groups.google.com/d/msg/golang-nuts/NPEKogRR9Q0/IC-IUUy7CQAJ So you can declare symbols as weak (which I didn't know

Re: [go-nuts] Using go to write plugins for a C host application

2016-11-20 Thread ebw
Hi! Thanks for your answer! Am Sonntag, 13. November 2016 21:42:20 UTC+1 schrieb Justin Israel: > > > > I had been down a similar path where I was trying to port a go library to > C++ via building a c-shared library and then delegating to it from a thin > C++ API. > Turned out I hit problems wi

[go-nuts] Using go to write plugins for a C host application

2016-11-13 Thread ebw
Hi! I tried to come up with a way to write plugins in go for a C host application using -buildmode=c-shared. My first try failed, because go build -buildmode=c-shared insisted to resolve all symbols. I thought I could leave some symbols unresolved, so they can be later resolved, when the sh