Were you able to solve it? On Thursday, March 16, 2017 at 5:35:13 PM UTC+1, Robert Bielik wrote: > > Hi all, > > I have a project where I want to use grpc-gateway (written in Go) to > expose a gRPC endpoint via REST. I've managed to get it to work with > gateway parts compiled with Go into a separate > executable, however, I would really like to package the gateway into the > same library as the gRPC endpoint, and thus turned to "go build > -buildmode=c-archive" for a solution. However, > the result is not a linkable archive with Visual Studio 2015: > > service.a(go.o) : warning LNK4078: multiple '.text' sections found with > different attributes (61600060) > service.a(000001.o) : warning LNK4217: locally defined symbol _errno > imported in function x_cgo_sys_thread_create > service.a(000001.o) : warning LNK4217: locally defined symbol _beginthread > imported in function x_cgo_sys_thread_create > service.a(000001.o) : warning LNK4217: locally defined symbol __iob_func > imported in function _cgo_preinit_init > *service.a(000001.o) : fatal error LNK1223: invalid or corrupt file: file > contains invalid .pdata contributions* > > This is with VS 2015 Pro Update 3 and go version go1.7.3 windows/amd64. > > The c-shared build mode is not supported at all on Windows... :( > > Ideas ? > /Robert > >
-- 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]. For more options, visit https://groups.google.com/d/optout.
