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

Search found 3 matches
CCS Forum Index
Author Message
  Topic: #device error when compile for PCWH ver 3.185
pkwek

Replies: 4
Views: 14124

PostForum: General CCS C Discussion   Posted: Sun Mar 28, 2004 9:15 pm   Subject: #device error when compile for PCWH ver 3.185
Thanx!

Everything's ok when i set the compiler select menu to MicroChip PIC18!!!
Earlier on, this compiler select menu was not on the toolbar.

Ready caught me. Thought it was already selected p ...
  Topic: #device error when compile for PCWH ver 3.185
pkwek

Replies: 4
Views: 14124

PostForum: General CCS C Discussion   Posted: Sun Mar 28, 2004 7:47 pm   Subject: Still not working.
Thanx for the reply for the problem!

I have changed the codes to

#include <18F8620.h>
#device adc=10
void main ()
{}

But when i compile, 18F8620.h opens up and shows this error:

...
  Topic: #device error when compile for PCWH ver 3.185
pkwek

Replies: 4
Views: 14124

PostForum: General CCS C Discussion   Posted: Fri Mar 26, 2004 2:59 am   Subject: #device error when compile for PCWH ver 3.185
Hi,

Alway encounter this error when doing pre-processor setting.

codes:

#if defined(__PCH__)
#include (18F8620.h)
#endif

#device adc=10 <-- A #device is required before this line

...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group