Problems with structures in mikroC

mikroC, mikroBasic and mikroPascal for PRO ARM® MCUs, supporting STM32, Tiva, Kinetis, & CEC devices
Post Reply
Author
Message
vitalii
Posts: 2
Joined: 04 May 2018 22:55

Problems with structures in mikroC

#1 Post by vitalii » 05 May 2018 07:10

hi guys i need advice.
why this piece of code is compiled
//
if (packet.retries == retry_count)
{
unsigned char var_connection = packet.connection = 0;
unsigned int var_retries = packet.retries = 0;
}
//
This one is not compiled
if (packet.retries == retry_count)
{
packet.connection = 0;
packet.retries = 0;
}
ERRORS of mMikroC PRO for ARM ->Invalid declarator expected'(' or identifier modbus.c;Invalid declarator expected'(' or identifier modbus.c; Identifier redefined modbus.c; '}' expected '}' found modbus.c;Specifier needed modbus.c; Invalid declarator expected'(' or identifier modbus.c

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Problems with structures in mikroC

#2 Post by filip » 11 May 2018 14:14

Hi,

I believe that my colleague has responded you on the other topic regarding this issue.

Regards,
Filip.

Post Reply

Return to “ARM PRO Compilers”