Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Include path question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jan Engelhardt, post: 2491434"] Hello, assume foo/bar.h exists, and is included as '#include "bar.h"' in foo/bar.c. `gcc -c foo/bar.c` will compile it fine (i.e. finds the file). Is this a gcc extension or a C compiler standard feature that foo/ will be searched without explicitly passing -Ifoo? $ cat foo/bar.h #define GOAL 1 $ cat foo/bar.c #include <stdio.h> #include "bar.h" int main(void) { printf("%d\n", GOAL); return 0; } -`J' -- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Include path question
Top