<div dir="ltr">I'm trying to compile hello.c with clang.exe, but I'm getting an error about missing cstdlib headers.<div><br></div><div>Source:</div><div><br></div><div><a href="https://github.com/mcandre/mcandre/tree/master/c/hello/" target="_blank">https://github.com/mcandre/mcandre/tree/master/c/hello/</a></div>
<div><br></div><div>Trace:</div><div><br></div><div><font face="courier new, monospace">C:\Users\andrew\Desktop\src\mcandre\c\hello>gmake</font></div><div><font face="courier new, monospace">clang -O2 -Wall -Wextra -Wmost -Weverything -o hello hello.c</font></div>
<div><font face="courier new, monospace">hello.c:1:10: fatal error: 'stdio.h' file not found</font></div><div><font face="courier new, monospace">#include <stdio.h></font></div><div><font face="courier new, monospace"> ^</font></div>
<div><font face="courier new, monospace">1 error generated.</font></div><div><font face="courier new, monospace">gmake: *** [hello] Error 1</font></div><div><br></div><div>Do
I need to add libs to the compile command, something like -lc? I tried a
few variants, like -lc, -lstdlib, -lcstdlib, with no success.</div>
<div><br></div><div>System:</div><div><br></div><div>* clang.exe version 3.4 (trunk), from LLVM 3.4.svn, from the official LLVM <a href="http://llvm.org/builds/">snapshot installer</a><br></div><div>* gmake 3.82, from StrawberryPerl 5.16.3.3</div>
<div>* Windows 8.1 Professional x64</div><br>-- <br><div></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us" target="_blank">www.yellosoft.us</a></div>
</div>