c - Includes in libclang headers -
i looking through libclang headers here(http://llvm.org/svn/llvm-project/cfe/trunk/include/clang-c/) in noticed of headers have imports in
#include "clang-c/platform.h" // in cxstring.h // in index.h #include "clang-c/platform.h" #include "clang-c/cxstring.h"
i'm unable understand why headers prefixed clang-c/
since of them in same directory shouldn't rather have been ./platform.h
./cxstring.h
, likewise.
if headers end installed in /usr/local/include/clang-c
directory, sake of argument, command line option -i /usr/local/include
ensure #include "clang-c/platform.h"
found. if subdirectory not specified, you'd have have -i /usr/local/include/clang-c
on command line. provides partitioning , separation; clang-c/platform.h
separate file platform.h
other package.
note headers such <sys/wait.h>
use scheme, sys
in question o/s , headers found in /usr/include/sys
(but not have specify -i /usr/include/sys
on compiler command line because preprocessor searches in /usr/include
default).
Comments
Post a Comment