Need documentation on how to import C header into Swift 3.0


(Ken Burgett) #1

Hi Joe,

Can you point me to a good example of how to build a Swift 3.0 module that wraps some C code? I have searched, but keep finding Swift 2.2 documentation and it all seems to involve connecting to Objective-C, while my interests are accessing C code on a Linux platform, using the latest Ubuntu Linux 14.04 version of the Swift 3.0 toolchain.

Thanks in advance for your help.

···

--
Ken Burgett
Principal Software Engineer
Email: kenb@iotone.io
Office: 530.693.4449
Mobile: 831.332.6846
URL: www.iotone.co


(Michal Kalinowski) #2

Some good info in Package Manager docs:

https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md

Hope that helps,
Michał

···

On 21 May 2016, at 17:42, Ken Burgett via swift-users <swift-users@swift.org> wrote:

Hi Joe,

Can you point me to a good example of how to build a Swift 3.0 module that wraps some C code? I have searched, but keep finding Swift 2.2 documentation and it all seems to involve connecting to Objective-C, while my interests are accessing C code on a Linux platform, using the latest Ubuntu Linux 14.04 version of the Swift 3.0 toolchain.

Thanks in advance for your help.

--
Ken Burgett
Principal Software Engineer
Email: kenb@iotone.io
Office: 530.693.4449
Mobile: 831.332.6846
URL: www.iotone.co
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users