[cfe-dev] Clang complains

Devchandra L Meetei dlmeetei at gmail.com
Mon Mar 25 10:49:26 PDT 2013

 Clang 3.2 complains following but the system has the stdlib.h in

What could be the reason? is clang specifically looking for cstdlib?

/home/govind/CodeSpace/pegasus/src/Pegasus/Common/Config.h:133:10: fatal
error: 'cstdlib' file not found
>>>>>>#include <cstdlib> <<<<<<<<<
1 error generated.

[govind at localhost pegasus]$ locate stdlib.h
>>>>/usr/include/stdlib.h <<<<<<<<<<

and Following command also shows the

 [govind at localhost pegasus]$ echo | `gcc -print-prog-name=cc1` -v
ignoring nonexistent directory
ignoring nonexistent directory
#include "..." search starts here:
#include <...> search starts here:
>>>>>>>> /usr/include <<<<<<<<
End of search list.

Analyzing compilation unit
Performing interprocedural optimizations
<*free_lang_data> <visibility> <early_local_cleanups> <whole-program>
<inline>Assembling functions

Warm Regards
OpenPegasus Developer
"It's Always better to try and fail instead of not doing/trying anything"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130325/431f87bd/attachment.html>

More information about the cfe-dev mailing list