<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Please file a bug describing the situation and your environment. We’d be happy to make this easier for you in the future.<div class=""><br class=""></div><div class="">- mish</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 5, 2015, at 11:51 AM, Damien BRUN via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><p class="">Works with simple libs which can be referenced by a simple path. With Gdk/Gtk who share a single include dir, module compilation can't find its way. No matter what I try, I end up with :</p><p class="">&lt;module-includes&gt;:1:10: note: in file included from &lt;module-includes&gt;:1: #include “gtk/gtk.h”</p>
<pre class="">^</pre><p class="">/usr/include/gtk-3.0/gtk/gtk.h:30:10: error: ‘gdk/gdk.h’ file not found #include &lt;gdk/gdk.h&gt;</p><p class="">Seems like one would have to rewrite gtk/gdk headers to please clang…</p><p class="">2015-12-05 19:40 GMT+01:00 Damien BRUN &lt;<a href="mailto:dev@lanza.fr" class="">dev@lanza.fr</a>&gt;:</p>
<blockquote class=""><pre class="">Thanks Harlan for the link, this is what I'm trying to do. =)</pre>
<pre class="">With interdependent libs, this becomes a mess anyway... (tried gdk/gtk...)</pre>
<pre class="">&amp; thanks René for the video. Very interesting for what will come next.</pre>
<pre class="">2015-12-05 18:07 GMT+01:00 Harlan Haskins &lt;<a href="mailto:harlan@harlanhaskins.com" class="">harlan@harlanhaskins.com</a>&gt;:</pre>
<blockquote class=""><pre class="">C libraries require you to create modules for them. There's a great guide with examples for importing libjpeg into Swift on GitHub:</pre>
<pre class=""><a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md" class="">https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md</a></pre>
<pre class="">On Dec 5, 2015, at 8:58 AM, Damien BRUN &lt;<a href="mailto:dev@lanza.fr" class="">dev@lanza.fr</a>&gt; wrote:</pre>
<pre class="">Hello Again,</pre>
<pre class="">Now that I have a functional Swift installation, I'd like to know if/how I can use C libs ?
How do I import headers &amp; link to the right libs ?</pre>
<pre class="">Thanks</pre>
<pre class="">_______________________________________________
swift-users mailing list
<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></pre></blockquote></blockquote><p class=""><em class="">____________________________________________</em>_ swift-users mailing list <a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a> <a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a></p>

<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=xTF6JWnt2pl7kNka7081D3VajDoXFZTI5JEuSuQLncr9eucMhFd-2BCu6-2FqCDmB-2B6fFh3bPcI4ZKEOLz5n9U-2FykkcRYE-2BJaLyaf1ed1e6abH-2BMfFli87qsiQiDw19ExmR9WfWp2hyfQv5FUAl0JFG-2FbX2h89ObWzll2RQnh8cTm5U5FUwugoflxb4DU9RBJ-2F3HzIzVFij4T9bXOT0svamT-2Fa3zXSsZ0P8Pjgm8Z2we5zI-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;" class="">
</div>
</div></blockquote></div><br class=""></div></body></html>