Skip to content

-include ignores includepath #4364

@EdSchouten

Description

@EdSchouten
Bugzilla Link 3992
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS FreeBSD
Blocks #4068
CC @pwo

Extended Description

$ 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 :106:
: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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions