title: Library include paths with same header name
body: <p>What is the best method to include a file that has same name in another folder from additional include directories?</p>
  
  <p>Example:</p>
  
  <pre><code>lib1/include/foo.h
  lib2/include/foo.h</code></pre>
  
  <p>where both lib1/include and lib2/include are added in additional include directories.</p>
  
  <p>Edit:</p>
  
  <p>The libs are from different SDK's and every developer installs them in his own place. Only thing that is sure is that both folders are in IDE's additional include paths</p>
  
  <p>method 1:</p>
  
  <p><code>#include "../../lib1/include/foo.h</code></p>
  
  <p>method2:</p>
  
  <p>Add lib1/include before lib2/include in search paths and because they are searched in order with:</p>
  
  <p><code>#include "foo.h"</code></p>
  
  <p>lib1/include/foo.h will be included</p>