[cfe-dev] libcxx: cstdio / stdio.h - missing file

Anton Smirnov dev at antonsmirnov.name
Sun Aug 17 10:03:50 PDT 2014


I should be clear from the beginning.

I already did cross-compiled Clang for ios and my question is not related
to Apple LLVM completely.
It's about libcxx.

The problem is that libcxx header file cstdio includes file stdio.h which
is absent.
Should it be in system headers?

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++.
When i copy libcxx headers and add -I to libclang command-line while
parsing files i have stdio.h file absent deagnostics.

i'm trying to understand he reason.

2014-08-17 19:46 GMT+06:00 Ben Pope <benpope81 at gmail.com>:

> On Sunday, August 17, 2014 09:37 PM, Anton Smirnov wrote:
>> To be more detaild i don't have any problems on my dev machine (Mac OS X
>> with XCode toolchain).
>> I'd like to use libcxx with clang on ios device.
> 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.
> 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.
> 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.
> Ben
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140817/2479f235/attachment.html>

More information about the cfe-dev mailing list