title: Using Relative Path in MPLAB IDE
body: <p>My project structure and files are as follows:</p>
  
  <pre><code>project\HAL\hw_lcd.h
  project\HAL\hw_lcd.c
  project\project\app.c
  project\project\workspace.mcp
  project\project\workspace.mcw
  </code></pre>
  
  <p>Where 'project' is a place holder for project name. I'm using MPLAB IDE 8.66 and HI-TECH Compiler 9.81.</p>
  
  <p>I'd like to add hw_lcd.h/c files using relative path to the project. So that if I write <code>#include "HAL/hw_lcd.h"</code> in app.c, then hw_lcd.h will be found from app.c.</p>
  
  <p>I added <code>../</code> as include search path (project > build options... > project > directories and search path > include search path) but got following error:</p>
  
  <blockquote>
    <p>can't open include file "hw_lcd.h": No
    such file or directory</p>
  </blockquote>
  
  <p>Then I tried <code>../HAL</code> as include search path and written <code>#include "hw_lcd.h"</code> in app.c. This also generates the above error.</p>
  
  <p>Is it possible to use relative search path from within MPLAB IDE?</p>
  
  <p>If the <code>#include</code> path itself is relative, then it works:</p>
  
  <pre><code>#include "../HAL/hw_lcd.h"
  </code></pre>