<div dir="ltr">Ben.<div><br></div><div>I should be clear from the beginning.</div><div><br></div><div>I already did cross-compiled Clang for ios and my question is not related to Apple LLVM completely.</div><div>It's about libcxx.</div>
<div><br></div><div>The problem is that libcxx header file cstdio includes file stdio.h which is absent.</div><div>Should it be in system headers?</div><div><br></div><div>At this time i do have working libclang in ios app and i'd like to add libcxx to it thouh i'm not sure if clang already includes libc++.</div>
<div>When i copy libcxx headers and add -I to libclang command-line while parsing files i have stdio.h file absent deagnostics.</div><div><br></div><div>i'm trying to understand he reason.</div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-08-17 19:46 GMT+06:00 Ben Pope <span dir="ltr"><<a href="mailto:benpope81@gmail.com" target="_blank">benpope81@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Sunday, August 17, 2014 09:37 PM, Anton Smirnov wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To be more detaild i don't have any problems on my dev machine (Mac OS X<br>
with XCode toolchain).<br>
<br>
I'd like to use libcxx with clang on ios device.<br>
</blockquote>
<br></div>
Then you'll also need to invoke clang with the magic incantation for cross-compiling to that device in order to ascertain why it can't find the c headers. I don't remember the command off the top off my head.<br>
<br>
By specifying -v along with the suitable build parameters for cross-compiling, and by inspecting the header search path n the output, you should be able to determine what's going wrong. More than likely, you are not specifying a valid platform or isysroot, or isystem or whatever.<br>
<br>
This is actually not the right place for support on Apple LLVM, but I suspect that with -v and a little thought, you will figure it out.<div class="HOEnZb"><div class="h5"><br>
<br>
Ben<br>
<br>
______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>