Hi Osman,

Your clang cannot find stdio.h because it does come with a C standard
library. As part of using bare clang/lld you will have to roll your own
toolchain including standard libraries. Even if you did that, in order to
use stdio.h you would have to implement emulated POSIX I/O syscalls, which
would not be trivial to get right.

Building your own installation of Emscripten is rather complex, as you have
discovered. Why don't you use the emsdk to install emscripten instead?
https://emscripten.org/docs/getting_started/downloads.htm

*From: *Osman Zakir <[email protected]>
*Date: *Thu, May 9, 2019 at 7:29 AM
*To: *emscripten-discuss

I'll also add this here: I did try what's shown here
> <https://gist.github.com/msimpson/cd7e9372be9b3cbf7ba89ce1439c9ee1>.  It
> didn't work; I got an error saying that it can't find stdio.h.  I can
> generate regular .exe files with Clang just fine, though.
>
> --
> You received this message because you are subscribed to the Google Groups
> "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/cd408530-4e23-4912-9841-f40b1baf096f%40googlegroups.com
> <https://groups.google.com/d/msgid/emscripten-discuss/cd408530-4e23-4912-9841-f40b1baf096f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EUPQu0HkRmpbZBu0N%2B8%2BoxcHgnKsuuoDNd7FdQv4de%2Bkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to