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

error file can not be opened

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



Joined: 23 Feb 2010
Posts: 12

View user's profile Send private message

error file can not be opened
PostPosted: Mon Mar 01, 2010 12:40 pm     Reply with quote

I'm just starting to use the plugin in MPLAB and also the demo version PCWHD. Please help
And I'm having these errors:
Quote:

ccgonza.c line (9,22) file can not be opened
-lineA# device required before this line
Undefined identifier output_high, input

Code:

#include "pic16f877.h"

void main()
{
int x;

output_D(0);

while(1)
{
x=input(PIN_C0);

if(x==1) output_high(PIN_D0);
}
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 01, 2010 12:43 pm     Reply with quote

Quote:

#include "pic16f877.h"

If you are using the CCS compiler, please look in the Devices directory
and find the correct name for the .H file for your PIC. Look in this
directory:
Quote:

c:\program files\picc\devices\
gonzalza



Joined: 23 Feb 2010
Posts: 12

View user's profile Send private message

PostPosted: Mon Mar 01, 2010 12:51 pm     Reply with quote

oo yes thanks, stupid mistake
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