How to exclude header under current path in gcc
<p>Suppose I have two directory <code>product</code> and <code>test</code>.</p>

<pre><code>./test
./test/test_product.cpp
./test/foo.h
./product
./product/product.cpp
./product/product.h
./product/foo.h
</code></pre>

<p>And <code>product.cpp</code> include <code>foo.h</code> as:</p>

<pre><code>#include "foo.h"
</code></pre>

<p>The default behavior is to include <code>/product/foo.h</code>.
However, I want to include <code>/test/foo.h</code> in <code>/product/product.cpp</code> without any modification in product directory.
Is there any way to do that? Thanks a lot!</p>