[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Relative imports
- From: Sebastien Lai <237482@...>
- Date: Wed, 9 Mar 2011 12:09:08 +0100
On Wed, Mar 9, 2011 at 8:54 AM, Henk Boom <henk@henk.ca> wrote:
>
> Actually, C does. Some projects do something like -I. and use absolute
> paths anyway though.
>
What C does is including - the preprocessor replaces a part of text
with another text.
And even C does relative including - by using quotes:
#include "foo.h"
This would search for a file named "foo.h" in the same directory the
sourcefile lies, but:
#include <foo.h>
would search global include paths first.