View previous topic :: View next topic |
Author |
Message |
joel1
Joined: 20 Aug 2014 Posts: 2
|
compiler error on #include "d:\Pics\c\16F88.h" |
Posted: Wed Aug 20, 2014 10:07 pm |
|
|
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
|
|
Posted: Thu Aug 21, 2014 4:39 am |
|
|
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
|
|
Posted: Thu Aug 21, 2014 2:57 pm |
|
|
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
|
|
Posted: Thu Aug 21, 2014 8:57 pm |
|
|
i used #include <16F88.H>
that seems to work
thanks for the feedback |
|
|
|