<div dir="ltr">You interpreted the question correctly. My executable is not present in the clang directory and therefore I was getting one path wrong, which soon became apparent from the verbose output. For the time being I have added the path through command line. I am interested in compiler theory and would like to know why this problem is taking so long to fix? What are the possible options and why makes it so hard to choose one? Thank you very much for your help.<div>
<br></div><div>Regards,</div><div>Adil</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 7, 2013 at 7:58 AM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Short answer: <stdarg.h> is not found in that directory.</div><div><br></div><div>Long answer: Clang (and the clang libraries) looks for <stdarg.h> and (other compiler-provided headers) in a hardcoded directory relative the the current executable. If your executable is not sitting inside alongside clang inside a clang installation dir or build dir, then the hardcoded path that it looks for won't contain the right headers (if your tool is in such a directory, then I have probably misdiagnosed your issue; I apologize). This has been a pain point for a long time and needs to be fixed, but we have not reached a consensus about the best way to go about it. <<a href="http://clang.llvm.org/docs/FAQ.html" target="_blank">http://clang.llvm.org/docs/FAQ.html</a>> will give you some insight into the issue.</div>

<div><br></div><div><br></div>Dmitri, could you please update/rework <<a href="http://clang.llvm.org/docs/FAQ.html" target="_blank">http://clang.llvm.org/docs/FAQ.html</a>> so that it covers the way that madil90 has posed this question (regardless of whether or not I diagnosed this issue correctly)? Maybe we should have a dedicated question `why does clang not find some headers like "stddef.h" or "stdarg.h"`? The content should be written to fill the use case where we reply to these built-in header questions by just linking to the FAQ and have that give the user a useful understanding of the issue (and what they can do about it, and that they are not alone).<span class="HOEnZb"><font color="#888888"><div>

<br></div><div>-- Sean Silva</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Mohammad Adil<div>LUMS SSE</div>
</div>