what id difrnce btwn #include "htc.h" and #include<pic.h>

nerdegutta

Joined Dec 15, 2009
2,684
Aren't both those files in the standard library.

Difference between "" and <> is:

"" - files in project folder
<> - files in standard library


I might be wrong and confused here...
 

ErnieM

Joined Apr 24, 2011
8,377
Rich (BB code):
   #include "filename"

or

   #include <filename>
K&R said:
If the filename is quoted, searching for the file typically begins where the source program was found; if it is not found there, or if the name is enclosed in < and >, searching follows an implementation-defined rule to find the file.
An "implementation-defined rule" means you need to RTFM for your specific compiler. :)
 

be80be

Joined Jul 5, 2008
2,072
Your all wrong some what #include "htc.h" calls pic.h

pic.h tells the compiler how to handle chip setup osc for delay timing.

You only need #include "htc.h" in your main.c file. But if you use pic.h it will call htc.h

htc.h checks what compiler your using if you have pro or lite pic 12f to pic 32 your chips .inc files
 
Last edited:
Top