<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Joe,<div class=""><br class=""></div><div class="">Try this as a workaround: Set the LD_LIBRARY_PATH environment variable to $INSTALLED_LOCATION_OF_SWIFT/usr/lib/swift/linux</div><div class=""><div class=""><br class=""></div><div class="">This should only affect the REPL and not compiled code.</div><div class=""><br class=""></div><div class="">I think this is supposed to be fixed in the top of tree Swift but not in the Dec 1 binary drop.</div><div class=""><br class=""></div><div class="">- Tony</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Dec 11, 2015, at 5:54 AM, Joseph Bell via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">All,<div class=""><br class=""></div><div class="">Howdy.&nbsp; I am using swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04 that was released on December 1.&nbsp; The following code:</div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">import Foundation</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">let dateFormatter = NSDateFormatter()</font></div><div class=""><font face="monospace, monospace" class="">dateFormatter.dateFormat = "dd-MM-yyyy"</font></div><div class=""><font face="monospace, monospace" class="">let dateStr = dateFormatter.stringFromDate(NSDate())</font></div><div class=""><font face="monospace, monospace" class=""><br class=""></font></div><div class=""><font face="monospace, monospace" class="">print(dateStr)</font></div><div class=""><br class=""></div></div><div class="">results in&nbsp;<br class=""></div><div class=""><br class=""></div><div class=""><div class=""><font face="monospace, monospace" class="">LLVM ERROR: Program used external function '_TFC10Foundation6NSDateCfT_S0_' which could not be resolved!</font></div></div><div class=""><br class=""></div><div class="">when executed with the swift driver, and then when compiled with swiftc the print statement just gives a blank newline.</div><div class=""><br class=""></div><div class="">I don't know if this is a known issue (I haven't found any reference on the status page or elsewhere indicating this was unimplemented), or I have an environmental problem.</div><div class=""><br class=""></div><div class="">Thoughts?</div><div class=""><br class=""></div><div class="">Joe</div><div class=""><br class=""></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=U7z7oSqRMSwdl2rYt9JJ4zIFaeg4R-2FxExg9xndDuCbySwgGYpkPdKzLGU7ePNxKpsfOmkLNqUAao99PL6rC4U7UnIZWkeW1dTrUTRN-2Fprlm6sAlFjTqGe1b44JfhsB5HKOpfiG1rn-2Flaq8phZ5GCEHFk4WmEfHoDWOVUm1pANL2CXFB97i5Rkkcl9cWEp1BU4DWpPo8nEe7BTK8AnYSNEEzIsfXrql6FBdkAkB3zZK0-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="">
_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></div></body></html>