CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

CCS C PCH 5.090 compiler error 18 on MPLAB X v 5.45 IDE

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Marco27293



Joined: 09 May 2020
Posts: 110

View user's profile Send private message

CCS C PCH 5.090 compiler error 18 on MPLAB X v 5.45 IDE
PostPosted: Mon Jun 12, 2023 9:17 am     Reply with quote

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: 1317

View user's profile Send private message

PostPosted: Mon Jun 12, 2023 2:06 pm     Reply with quote

in the project options, go the CCS compiler section and under its subheading for Compiler Options, add that path to the "Include Directories" section
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group