http://llvm.org/bugs/show_bug.cgi?id=3992
Summary: -include ignores includepath
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: preprocessor
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Blocks: 3696
$ cat test.c
int
main(int argc, char *argv[])
{
foo();
}
$ cat foo/test.h
#include <stdio.h>
void foo(void) { puts("Hi"); }
$ cc -o test -Ifoo -include test.h test.c
In file included from <built-in>:106:
<command line>:1:10: fatal error: '/home/ed/test.h' file not found
#include "/home/ed/test.h"
^
1 diagnostic generated.
$ gcc -o test -Ifoo -include test.h test.c
$ ./test
Hi
As you can see, the -include preprocessor option ignores the include paths.
This prevents us from building OpenSSL.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs