Re: [swift-users] SwiftProtobuf unable to link on Ubuntu

2017-10-14 Thread Geordie J via swift-users
Hi Edward, > Am 14.10.2017 um 22:35 schrieb Edward Connell : > > Hi Geordie, > That is actually a capital "I" eye for import > This font make an eye and elle look the same. This is the build line I am > trying to use. My apologies. > > swift build -Xswiftc -I/home/ed/swift-protobuf/.build/rel

Re: [swift-users] SwiftProtobuf unable to link on Ubuntu

2017-10-14 Thread Edward Connell via swift-users
Hi Geordie, That is actually a capital "I" eye for import This font make an eye and elle look the same. This is the build line I am trying to use. swift build -Xswiftc -I/home/ed/swift-protobuf/.build/release -Xlinker -L/home/ed/swift-protobuf/.build/release On Sat, Oct 14, 2017 at 1:00 PM, Geord

Re: [swift-users] SwiftProtobuf unable to link on Ubuntu

2017-10-14 Thread Geordie J via swift-users
Hi > Am 14.10.2017 um 21:55 schrieb Edward Connell via swift-users > : > > Has anyone used the SwiftProtobuf module on Linux? > https://github.com/apple/swift-protobuf > > > I am able to successfully generate swift classes from my proto file. > However

[swift-users] SwiftProtobuf unable to link on Ubuntu

2017-10-14 Thread Edward Connell via swift-users
Has anyone used the SwiftProtobuf module on Linux? https://github.com/apple/swift-protobuf I am able to successfully generate swift classes from my proto file. However when building, the code compiles but I get a ton of undefined link references. I included -Xswiftc -I/home/ed/swift-protobuf/.bui

Re: [swift-users] Why does the withUnsafeMutableBufferPointer closure take an inout parameter?

2017-10-14 Thread Guillaume Lessard via swift-users
> On Oct 14, 2017, at 10:29, Braden Scothern via swift-users > wrote: > > There is a lot of value in these being mutating functions when working with C > APIs that need a buffer for it to write to. > > If you have a collection and ensure it had allocated it's memory, you can > then have the

Re: [swift-users] Why does the withUnsafeMutableBufferPointer closure take an inout parameter?

2017-10-14 Thread Braden Scothern via swift-users
There is a lot of value in these being mutating functions when working with C APIs that need a buffer for it to write to. If you have a collection and ensure it had allocated it's memory, you can then have the C API write directly into the collection's storage avoiding extra copy operations. I

Re: [swift-users] Why does the withUnsafeMutableBufferPointer closure take an inout parameter?

2017-10-14 Thread Martin R via swift-users
> On 14. Oct 2017, at 13:15, Geordie Jay via swift-users > wrote: > > Chris Lattner schrieb am Sa. 14. Okt. 2017 um 05:18: > >> On Oct 13, 2017, at 7:40 PM, Andrew Trick via swift-users >> wrote: >> >> >> >>> On Oct 12, 2017, at 3:52 AM, Geordie Jay via swift-users >>> wrote: >>> >>>

Re: [swift-users] Why does the withUnsafeMutableBufferPointer closure take an inout parameter?

2017-10-14 Thread Geordie Jay via swift-users
Chris Lattner schrieb am Sa. 14. Okt. 2017 um 05:18: > > On Oct 13, 2017, at 7:40 PM, Andrew Trick via swift-users < > swift-users@swift.org> wrote: > > > > On Oct 12, 2017, at 3:52 AM, Geordie Jay via swift-users < > swift-users@swift.org> wrote: > > > Guillaume Lessard via swift-users schrieb