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

PCD: #device required before this line

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







PCD: #device required before this line
PostPosted: Sun Oct 11, 2009 1:28 pm     Reply with quote

I'm using this code, but when I want to compile it I get error.
http://ccsinfo.com/forum/viewtopic.php?t=35274&highlight=explorer
Code:

// PIC24FJ

#include "EXPLCD.C"
#device ADC=10
#device PASS_STRINGS=IN_RAM

#FUSES NODEBUG                 
#FUSES ICSP1                   
#FUSES NOWINDIS               
#FUSES WPRES128                 
#FUSES WPOSTS16                 
#FUSES IESO                     
#FUSES NOCKSFSM                 
#FUSES NOOSCIO                 
#FUSES HS                       
#FUSES NOIOL1WAY               
#FUSES WPEND_LOW             
#FUSES NOWPCFG               
#FUSES NOWPDIS               
#FUSES WPFP0   
#FUSES PR_PLL                   
#FUSES PLL3                 
#FUSES RESERVED                 
#FUSES DISUVREG       
#use delay(clock=24000000)

void main()
{
    lcd_init();
   lcd_putc("Start!");
}
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sun Oct 11, 2009 3:05 pm     Reply with quote

You should have a line with a device include file e.g.
Code:
#include <24FJ256GB110.h>

Where is it?
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