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

unable to declare a function

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



Joined: 25 Aug 2010
Posts: 8

View user's profile Send private message

unable to declare a function
PostPosted: Tue Nov 02, 2010 9:04 pm     Reply with quote

I'm using PCH v4.084.

Declaring the below function gives an error: "Expecting a basic type"
Code:
void buzzer_off (void);


Able to compile if I put it any other way
Code:
void buzzeroff (void);

or even...
Code:
void buzzer_on (void);//which defeats the purpose of having it switched off


It's just weird.
Can anyone unravel this mystery?

Thanks
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Nov 02, 2010 9:19 pm     Reply with quote

I don't have 4.084. However, it compiles with no problem in
versions 4.108 and 4.114
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 02, 2010 9:42 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=32393&highlight=expecting+basic+type
planet69



Joined: 25 Aug 2010
Posts: 8

View user's profile Send private message

PostPosted: Wed Nov 03, 2010 2:23 am     Reply with quote

thanks
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