<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="">Indeed, this *should* work, and if we have to do some tricks to make it do so we’re happy to make the modifications, so please file a bug and we’ll look into it. Thanks.<div class=""><br class=""></div><div class="">Max</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 7, 2015, at 11:06 AM, Mish Awadah via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div 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 class=""><blockquote type="cite" class=""><div class="">On Dec 5, 2015, at 11:51 AM, Damien BRUN via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> 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=""><module-includes>:1:10: note: in file included from <module-includes>: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 <gdk/gdk.h></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 <<a href="mailto:dev@lanza.fr" class="">dev@lanza.fr</a>>:</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="">& 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 <<a href="mailto:harlan@harlanhaskins.com" class="">harlan@harlanhaskins.com</a>>:</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 <<a href="mailto:dev@lanza.fr" class="">dev@lanza.fr</a>> 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 & 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>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=cbMbdH1LnH6O78Q-2BHw3jtU8ikibH470Fh9meAJKpwSoQ1eUxB2DQGqm70jRlAM-2BCcPIw96DCXETXJCnWapCfcNLGuYLMvrmMDipu5rl5YQ-2FVzPodsoZJne6paKm-2FEKz7uwRumdrv1-2BWxKyCGD0VNlE7SAeWsZkrxrpJrQ2nSRtZNuQbHgNHKCymPhLipDNBeytT-2B1DkEHlTFn14iYFPz8VOCYeTyoUqFz0E201K7puc-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>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>