<div dir="ltr">Hi all,<br><br>I was able to build a ghc cross-compiler as per the wiki instructions (1), but I&#39;m having trouble linking the static library in my application. Previously, I was producing a single lib using Stephen Blackheath&#39;s ghc-iphone binary with the flags &quot;--make&quot; and &quot;-no-hs-main&quot;. <div>
<br></div><div>I&#39;ve been attempting to use the &quot;<span style="background-color:rgb(247,247,247);color:rgb(0,0,0);font-size:13px">-staticlib&quot; and &quot;-threaded&quot; options to build the library, but Xcode reports missing symbols from both the RTS and my own code when it tries to link. Furthermore, when I run arm-apple-darwin10-ghc it reports that a number of libraries from the RTS have no symbols (although &quot;nm&quot; can find them just fine).</span></div>
<div><font color="#000000"><br></font></div><div><font color="#000000">Any suggestions for how to fix these problems would be appreciated!</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Thanks again, </font></div>
<div><font color="#000000">Thomas<br></font><br><br><br><br>(1) <a href="http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS">http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS</a><br></div></div>