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

Invalid Pre-Processor directive Export requires IDE

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



Joined: 31 Aug 2011
Posts: 2

View user's profile Send private message

Invalid Pre-Processor directive Export requires IDE
PostPosted: Wed Aug 31, 2011 4:51 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Aug 31, 2011 11:45 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Sep 01, 2011 12:33 am     Reply with quote

I started a new project with the same source files, and the problem was solved.
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