[cfe-dev] Clang complains
rjmccall at apple.com
Mon Mar 25 13:12:51 PDT 2013
On Mar 25, 2013, at 10:49 AM, Devchandra L Meetei <dlmeetei at gmail.com> wrote:
> Clang 3.2 complains following but the system has the stdlib.h in /usr/include.
> What could be the reason? is clang specifically looking for cstdlib?
Yes, clang is specifically looking for a file named "cstdlib" in the include path.
1. In general, it's better all-around if the compiler doesn't have hacks about
specific file names.
2. <cstdlib> specifically is usually more than just "#include <stdlib.h>" because
it's required to declare things in namespace std, and that's often done
after-the-fact with using declarations.
More information about the cfe-dev