View previous topic :: View next topic |
Author |
Message |
jopedersen
Joined: 31 Aug 2011 Posts: 2
|
Invalid Pre-Processor directive Export requires IDE |
Posted: Wed Aug 31, 2011 4:51 am |
|
|
I have got the following error:
*** Error 7 "C:\program files\picc\devices\18f13k22.h" Line 187(2,6): Invalid Pre-Processor directive Export requires IDE
The error refers to this line in the 18f13k22.h
#word CCP_1 = getenv("SFR:CCPR1L")
PCH C compiler version 4.124
MPLAB ver. 8.76.
I include the 18f13k22.h as the first thing in my program
#include <C:\program files\picc\devices\18f13k22.h
I don't understand the error. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Aug 31, 2011 11:45 am |
|
|
I tried to make a test program, using the one line that you posted, but
it didn't give me an error with vs. 4.124:
Code: |
#include <C:\program files\picc\devices\18f13k22.h>
#fuses INTRC_IO,NOWDT,PUT,BROWNOUT,NOLVP
#use delay(clock=4M)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
//======================================
void main(void)
{
while(1);
} |
Can you post an absolute minimum length test program that shows the
error ? |
|
|
jopedersen
Joined: 31 Aug 2011 Posts: 2
|
|
Posted: Thu Sep 01, 2011 12:33 am |
|
|
I started a new project with the same source files, and the problem was solved. |
|
|
|