hi friends,
Can any body help me in resolving the following errors during compilation.
line 504 : ERROR MODBUS_MASTER.LIB : Return type (re) declared differently after use.
line 504 : ERROR MODBUS_MASTER.LIB : Syntax error - or garbage at end of program.
line 504 : ERROR MODBUS_MASTER.LIB : Need function definition or declaration.
And the problem is at,
MODBUS_SLAVE_DEBUG
unsigned MODBUS_CRC(unsigned char *pcMess, unsigned wLen)
{
auto unsigned char cHi,cLo; // CRC Accumulators (MSB & LSB)
auto unsigned w; // CRC Shift In Index
cHi = cLo = 0xFF; // Init CRC
while(wLen--)
{ // For Each Byte
w = cHi ^ *pcMess++; // Next Table Index
cHi = cLo ^ MODBUS_CRC_MSB[w]; // Next CRC
cLo = MODBUS_CRC_LSB[w];
}
return ((unsigned) cHi << 8) | cLo; // merge the bytes and return
}
/*** BeginHeader /
#endif // __MBMASTER
/** EndHeader */
Im using DC 9.62, Rabbit 3000.
Please help me its urgent…