[swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

Gage Morgan gagemorgan at outlook.com
Wed Dec 9 16:01:02 CST 2015


So I don't have any files named libcairo2.so, while I did have libcairo.so23xxxxx (some numbers after .so). I tried "link: cairo," and it said it could not find the module at all.

Sent from Outlook Mobile




On Wed, Dec 9, 2015 at 1:58 PM -0800, "Max Howell" <max.howell at apple.com> wrote:





Look at the .so file, you put the name without the lib prefix and without the .so suffix.

> So if the name of the library is libcairo amd to imstall I had to type "sudo apt-get install libcairo2-dev, what would I put for "link:?"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151209/d3f16933/attachment.html>


More information about the swift-users mailing list