CCS C PCH 5.090 compiler error 18 on MPLAB X v 5.45 IDE
Posted: Mon Jun 12, 2023 9:17 am
Hi,
I created a new project with MPLAB X IDE v5.45, PIC18F47J53 device and CCS C PCH v 5.090 compiler.
#include <18F47J53.h>
When I compile I get error:
Code:
C:\Users\ludov\MPLABXProjects\progetto\main.c:7:10: Error#18 File can not be opened
Not in source "C:\Users\ludov\MPLABXProjects\progetto\18F47J53.h"
Not in local "18F47J53.h"
Not in project "C:\Users\ludov\MPLABXProjects\progetto\18F47J53.h"
Not in default "C:\Users\ludov\MPLABXProjects\progetto\18F47J53.h"
How can I fix it ?
The header file is in default folder:
C:\Program Files (x86)\PICC\Devices
It is the first time I have this error, I followed the standard procedure to create the project...
Please help me,
Marco
jeremiah
Joined: 20 Jul 2010 Posts: 1354
Posted: Mon Jun 12, 2023 2:06 pm
in the project options, go the CCS compiler section and under its subheading for Compiler Options, add that path to the "Include Directories" section
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum