<div dir="ltr">Objective-C is not avaliable on Linux.</div><br><div class="gmail_quote"><div dir="ltr">Em seg, 1 de fev de 2016 às 13:09, Труб Илья &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;d like to note some interesting issue. If I try to input<br>
<br>
swiftc -c s.swift -Xcc -I&lt;paths to my headers, including path to Foundation/NSObject.h&gt; -import-objc-header C.h<br>
<br>
then I get a lot of compile errors on ALL ObjectiveC code lines in NSObject.h, so, it seems that compiler does not recognize Objective C syntax at all.<br>
But, if I (in another example) use -import-objc-header &lt;pure C header file&gt;<br>
that all is OK: .swift source file with function invocations from pure C .h-file compiled successfully, .o-file is created. What is explanation of such phenomena and how it could be overcomed?<br>
<br>
<br>
_______________________________________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
</blockquote></div>