[LLVMbugs] [Bug 3992] New: -include ignores includepath

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Apr 15 09:05:09 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: ed at 80386.nl
                CC: llvmbugs at cs.uiuc.edu
            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.



More information about the llvm-bugs mailing list