Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4250502
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:32:13+00:00 2026-05-21T04:32:13+00:00

My project structure and files are as follows: project\HAL\hw_lcd.h project\HAL\hw_lcd.c project\project\app.c project\project\workspace.mcp project\project\workspace.mcw Where

  • 0

My project structure and files are as follows:

project\HAL\hw_lcd.h
project\HAL\hw_lcd.c
project\project\app.c
project\project\workspace.mcp
project\project\workspace.mcw

Where ‘project’ is a place holder for project name. I’m using MPLAB IDE 8.66 and HI-TECH Compiler 9.81.

I’d like to add hw_lcd.h/c files using relative path to the project. So that if I write #include "HAL/hw_lcd.h" in app.c, then hw_lcd.h will be found from app.c.

I added ../ as include search path (project > build options… > project > directories and search path > include search path) but got following error:

can’t open include file “hw_lcd.h”: No
such file or directory

Then I tried ../HAL as include search path and written #include "hw_lcd.h" in app.c. This also generates the above error.

Is it possible to use relative search path from within MPLAB IDE?

If the #include path itself is relative, then it works:

#include "../HAL/hw_lcd.h"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:32:14+00:00Added an answer on May 21, 2026 at 4:32 am

    Not entirely the same, but I always use

                #include "hw_lcd.h"
    

    and then add the header to the project, and in the “add” dialog I select “this file is for this project, use relative path” or something similar.

    This works fine. (but has the trouble that if paths (e.g. HAL) change, you need to walk over them, and change them all)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an App Engine project structure setup as follows: ProjectRoot app.yaml index.yaml main.py
I have a Python project with following directory structure: /(some files) /model/(python files) /tools/(more
I have a python project with this directory structure and these files: /home/project_root |---__init__.py
How can I checkout only the directory structure of a project (without any files)
Here is my project structure: /app --/lib ----/porter.rb --/spec ----/porter_spec.rb In file porter_spec.rb i
Greetings, My project structure is as follows: \- base (C static library) callbacks.h callbacks.c
I have a very simple directory structure: Project Project/src Project/build Source files are in
I have a simple python application where my directory structure is as follows: project/
I am trying to setup a small maven based project structure as follows Maven
Following this file structure , my project looks as follows (simplified): Project/ |-- project/

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.