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 support@ccsinfo.com

#separate ?

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








#separate ?
PostPosted: Thu Apr 01, 2004 8:47 am     Reply with quote

Whenever I do the prescribed #separate directive by placing it directly above a function, I end up getting the following error:

" Function definition different from previous definition"

Am I supposed to then put a #separate directive on the line prior to my function prototype as well?

e.g.

#separate
void mike(void); // function prototype
....
#separate
void mike(void) /* function implementation */
{
...
}
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Apr 01, 2004 9:32 am     Reply with quote

Yes, befor the prototye and befor the function. Of course the gold test is to try it and see!
_________________
The search for better is endless. Instead simply find very good and get the job done.
valemike
Guest







PostPosted: Thu Apr 01, 2004 9:45 am     Reply with quote

yup, i tried it earlier, and it passed the gold test Laughing

yet i do have other issues making stuff that worked on 18F devices to now work on 16F, as you can see in my flurry of other recent posts. I Just wanted to get the #separate issue out of the way.

-Mike
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