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

Overloading error

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







Overloading error
PostPosted: Sun Feb 17, 2008 8:52 am     Reply with quote

Hi,

I added an overloaded function but the compiler is generating an error message:
*** Error 165 "C:\Files\Projectx\display.c" Line 297(71,72): No overload function matches

These are the prototypes defined in the .h with the function in the .c

void display_draw_bitmap(Word index, uint8_t width, uint8_t pages);
void display_draw_bitmap(Word index, uint8_t width);

Can someone give me an idea what is missing.

Thanks

Tim
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Sun Feb 17, 2008 11:51 am     Reply with quote

post the source code where you call the functions.
Are the function prototypes the same as defined in the .c file?
ttease
Guest







Overloaded
PostPosted: Sun Feb 17, 2008 3:26 pm     Reply with quote

Hi,

Thanks for the clue and figured it out. The 'Word' type is a union with two uint8_t's and a uint16_t. The function calls were made with vars defined as uint16_t. I needed to cast the vars to Words and all works.

Thanks,

Tim
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