There is no problem with the include file,
Normally in a IDE we setup include path for give the support to the interlaser
Code: Select all
and debugger.
Compiler is a very standalone program, it could work without even include path was not set.
Since using it's default include path. I'm pretty sure it's default include path contains "p16F877.h" file
So just include it.
like this:
[code]
#include <16F877.h>
or if you keeping 16F877.h in your project, [when you add it to the project , I think it MPLAB will copy it to
your project working source directory, or pass the include path the the directory, in that case.
will work.
So use try the first choice I have given. Then it will search default include directory.
I'm pretty sure you lack this line.
These things are non magic. your compiler is already working. Only thing is when you didn't add that include
file as a project file, the second choice won't work.
Anyway read the manual, manual is not to forcefully to keep in mind like periodic table, it's for reference.
Manual describes how to setup the include path,library path ,linker scripts , templates and etc. When you
got some time read it.
Contaz, your compiler is working fine , otherwise it won't give this error messages like this, note your
simple mistake on ';' thing. After the while.