Same error,sir one thing more can u tell does "
extern some variable" doessn't work in C,i mean does "extern" variable works in c?
word16 checksum(char *addr, word32 count)
*((word16 *) addr)++
OK look at what this means.
It looks like you want to cast a pointer to an 8 bit quantity to a pointer to a 16 bit quantity. Try dereferencing them first, then use unsigned short to cast.
Edit: try dereferencing them then assignment.
extern variable means the variable is declared in another file. Google it
Last edited on