<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>C libraries require you to create modules for them. There's a great guide with examples for importing libjpeg into Swift on GitHub:</div><div><br></div><div><a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md">https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md</a><br></div><div><br>On Dec 5, 2015, at 8:58 AM, Damien BRUN &lt;<a href="mailto:dev@lanza.fr">dev@lanza.fr</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div>Hello Again,<br><br></div>Now that I have a functional Swift installation, I'd like to know if/how I can use C libs ?<br></div>How do I import headers &amp; link to the right libs ?<br><br></div>Thanks<br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=z0Ft8gvIaLt1zLwfkl4og6osLD9N8tlWJY1PY2zqWLWH8-2B7HlyAgX9r8jfVk6BsGIX-2F4IWGmnjKU-2BjJWcnMtHUjdnRDBTHNaa0Y0yVD-2BVi7gbAP9Nx62JnNWdnrIaqDWHeXgBjbWufvvw19dZArYhvmWwR-2F15j6HtspYBAQ-2B7fRcw7qXPMHY9Yk7rnLDvQ-2BVv0wZ4JndG4BCSPPi4EnN1JcR3XIB2RKLyUcXIX0e-2BIU-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;">
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-users mailing list</span><br><span><a href="mailto:swift-users@swift.org">swift-users@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a></span><br></div></blockquote></body></html>