Jump to content

Source Files In Mplab Project Not Found

Recommended Posts

Bug description:

When including source files that are in sub directories with MPLAB, they are not found by the BoostC compiler. For example, I have a project that consist out of the following files:






When creating a project in MPLAB, and adding "main.c" and "mxlib/lcdchar.c" to my MPLAB project, BoostC does not find "mxlib/lcdchar.c" during compilation. It also shows that it is looking in the wrong folder. It reports the following error message:


FATAL: Unable to open input file: D:\prj\pic\lcd16s\lcdchar.c
Error: preprocessing erro


But, "lcdchar.c" is located in "D:\prj\pic\lcd16s\mxlib\lcdchar.c" and NOT "D:\prj\pic\lcd16s\lcdchar.c" as shown in the error message. When I look in the *.mcp MPLAB project file, I see that the path there is correct. I can also try and add -I compiler include options to direct the compiler to the file, but it still does not find it. Please help, seeing that we use namespaces with all our projects. Converting all our projects to a flat structure will be lots of work.



Is the problem 100% reproduceable:




IDE version: SourceBoost IDE version

Compiler: BoostC

Compiler version: V6.14

Target device: PIC16f689

OS: Windows 2000

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...