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 CCS Technical Support

compiler error on #include "d:\Pics\c\16F88.h"

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



Joined: 20 Aug 2014
Posts: 2

View user's profile Send private message

compiler error on #include "d:\Pics\c\16F88.h"
PostPosted: Wed Aug 20, 2014 10:07 pm     Reply with quote

get the following error

*** Error 18 "SerialTest-88-Internal8MHz.c" Line 11(10,29): File can not be opened
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 4:39 am     Reply with quote

The error has nothing to do with the 16F88.h header file.
The problem is that the compiler cant find the referenced file.

Make sure "SerialTest-88-Internal8MHz.c" is in the same directory as your
program. If it is, you likely have the file name spelling wrong in your program.
I would not use dashes in file names. It causes too many problems.
Change to underscores or, better yet, get rid of them entirely and
make it all one word
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 2:57 pm     Reply with quote

I have seen this rarely. I don't remember the details, except that the file
is there, but the compiler reports it can't find it. Everything appears to
be correct, such as the path to include files, etc.

I solved it by a complete removal of the compiler (examining the
directory and manually deleting files if necessary) , and then re-installing
the compiler.

Quote:
#include "d:\Pics\c\16F88.h"

Also, people have reported problems if they use a directory for the
compiler, other than the default one. You are doing this.
joel1



Joined: 20 Aug 2014
Posts: 2

View user's profile Send private message

PostPosted: Thu Aug 21, 2014 8:57 pm     Reply with quote

i used #include <16F88.H>
that seems to work
thanks for the feedback
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