View previous topic :: View next topic |
Author |
Message |
ttease Guest
|
Overloading error |
Posted: Sun Feb 17, 2008 8:52 am |
|
|
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
|
|
Posted: Sun Feb 17, 2008 11:51 am |
|
|
post the source code where you call the functions.
Are the function prototypes the same as defined in the .c file? |
|
|
ttease Guest
|
Overloaded |
Posted: Sun Feb 17, 2008 3:26 pm |
|
|
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 |
|
|
|