Re: [go-nuts] Swig, Shared C++ library and Go not working

2017-08-04 Thread il
Tried it. I need help with Swig and Shared lib пятница, 4 августа 2017 г., 21:37:32 UTC+3 пользователь Ian Lance Taylor написал: > > On Fri, Aug 4, 2017 at 8:08 AM, il > > wrote: > > Your method is good for static linking. > > Not for Shared C++ library > > Add a .go file with > > /* > #cgo

Re: [go-nuts] Swig, Shared C++ library and Go not working

2017-08-04 Thread Ian Lance Taylor
On Fri, Aug 4, 2017 at 8:08 AM, il wrote: > Your method is good for static linking. > Not for Shared C++ library Add a .go file with /* #cgo LDFLAGS: -lmylib */ import "C" to get system linker flags. Ian > пятница, 4 августа 2017 г., 18:07:15 UTC+3 пользователь Ian Lance Taylor > написал: >>

Re: [go-nuts] Swig, Shared C++ library and Go not working

2017-08-04 Thread il
Your method is good for static linking. Not for Shared C++ library пятница, 4 августа 2017 г., 18:07:15 UTC+3 пользователь Ian Lance Taylor написал: > > On Fri, Aug 4, 2017 at 7:20 AM, il > > wrote: > > I wanna use precomplied c++ library. I make test project for it. > > > > > > Mac OS Sierr

Re: [go-nuts] Swig, Shared C++ library and Go not working

2017-08-04 Thread Ian Lance Taylor
On Fri, Aug 4, 2017 at 7:20 AM, il wrote: > I wanna use precomplied c++ library. I make test project for it. > > > Mac OS Sierra Apple LLVM version 8.0.0 (clang-800.0.42.1) > > GO: go1.8.3 darwin/amd64 > SWIG Version 3.0.12 > > > swig -c++ -go -soname libapple.dylib -use-shlib -intgosize 64 core/A

[go-nuts] Swig, Shared C++ library and Go not working

2017-08-04 Thread il
I wanna use precomplied c++ library. I make test project for it. Mac OS Sierra Apple LLVM version 8.0.0 (clang-800.0.42.1) GO: go1.8.3 darwin/amd64 SWIG Version 3.0.12 swig -c++ -go -soname libapple.dylib -use-shlib -intgosize 64 core/Apple.i And I see Apple_gc.c and wanna compile with 6c(