Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22040

How to exclude header under current path in gcc

$
0
0

Suppose I have two directory product and test.

./test
./test/test_product.cpp
./test/foo.h
./product
./product/product.cpp
./product/product.h
./product/foo.h

And product.cpp include foo.h as:

#include "foo.h"

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


Viewing all articles
Browse latest Browse all 22040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>