#### baileychic

##### Advanced Member level 3

I am using PIC18F4620 and mikroC PRO PIC.

My issue is the below flag declaration is giving error. Error message is below.

Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 typedef struct { unsigned long B00:1; unsigned long B01:1; unsigned long B02:1; unsigned long B03:1; unsigned long B04:1; unsigned long B05:1; unsigned long B06:1; unsigned long B07:1; unsigned long B08:1; unsigned long B09:1; unsigned long B10:1; unsigned long B11:1; unsigned long B12:1; unsigned long B13:1; unsigned long B14:1; unsigned long B15:1; unsigned long B16:1; unsigned long B17:1; unsigned long B18:1; unsigned long B19:1; unsigned long B20:1; unsigned long B21:1; unsigned long B22:1; unsigned long B23:1; unsigned long B24:1; unsigned long B25:1; unsigned long B26:1; unsigned long B27:1; unsigned long B28:1; unsigned long B29:1; unsigned long B30:1; unsigned long B31:1; } ULONG_BIT_FIELDS_TYPE; typedef struct { ULONG_BIT_FIELDS_TYPE my_32_bit_flag; unsigned int buttons_port_value; unsigned int motor_control_port_value; unsigned int pwm_duties; unsigned long checksum; } REMOTE_CONTROL_TYPE; REMOTE_CONTROL_TYPE my_remote_control; sbit momentary_or_latch_mode_flag at my_remote_control.my_32_bit_flag.B00;

PHP:

`128 300 Syntax Error: 'b' expected, but 'my_32_bit_flag' found TRx1.c`