[cfe-dev] -include <file> does not respect -I<path>

Robert Purves listrp at gmail.com
Tue Apr 21 22:25:34 PDT 2009


$ touch test.c
$ mkdir headers
$ touch headers/test.h
$ gcc -c test.c -I./headers -include test.h
$ clang -c test.c -I./headers -include test.h
In file included from <built-in>:103:
<command line>:1:10: fatal error: '/Users/rp/test.h' file not found
#include "/Users/rp/test.h"
          ^

$ clang --version
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 69762)
Target: i386-apple-darwin9

Robert P.




More information about the cfe-dev mailing list