"struct/union required" / "not a member of the struct/union"

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
TheSystem
Posts: 3
Joined: Fri Oct 30, 2020 1:47 am
Contact:

"struct/union required" / "not a member of the struct/union"

Post by TheSystem »

Hi, this is the output below after compiling for a pic18f47k42. I have seen similar issues, but the fixes seemed to be for FCv7. I'm on FCv8. Thanks in advance.

EDIT: I'm using the generic GSM comms module.

Title:
Description:
Device: PIC.18F.18F47K42
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat 18F47K42 "C:\Users\proje\Desktop\FLOWBO~1\" "GDBM_v0.18"

C:\Users\proje\Desktop\FLOWBO~1>C:\PROGRA~2\Flowcode\Common\COMPIL~1\pic\batch\..\bin\xc8.exe --chip=18F47K42 "GDBM_v0.18.c" --MSGDISABLE=359,1273,1388 --FLOAT=32 --DOUBLE=32
Microchip MPLAB XC8 C Compiler (Free Mode) V1.45
Build date: Nov 15 2017
Part Support Version: 1.45
Copyright (C) 2017 Microchip Technology Inc.
License type: Node Configuration

C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c:
324: #define MX_SOFT_BAUD_X 1
^ (111) redefining preprocessor macro "MX_SOFT_BAUD_X" (C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: 314) (warning)
GDBM_v0.18.c:
19555: #warning "This interrupt has previously been enabled, so the macro <SYS_CLOCK_TMR0> may never get called."
^ (162) #warning: "This interrupt has previously been enabled, so the macro <SYS_CLOCK_TMR0> may never get called." (warning)
19580: #warning "This interrupt has previously been enabled, so the macro <SYS_CLOCK_TMR0> may never get called."
^ (162) #warning: "This interrupt has previously been enabled, so the macro <SYS_CLOCK_TMR0> may never get called." (warning)
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_Init_4()
551: INTCONbits.PEIE = 1;
^ (192) undefined identifier "INTCONbits"
^ (196) struct/union required
552: INTCONbits.GIE = 1;
^ (196) struct/union required
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_Uninit_4()
908: PIE1bits.RCIE = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S151
C:\ProgramData\MatrixTSL\FlowcodeV8\CAL\PIC\PIC_CAL_UART.c: FC_CAL_UART_UpdateBaud_4()
1564: PIE1bits.RCIE = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S151
1565: INTCONbits.PEIE = 1;
^ (192) undefined identifier "INTCONbits"
^ (196) struct/union required
1566: INTCONbits.GIE = 1;
^ (196) struct/union required
GDBM_v0.18.c: FCM_ACC_WriteRegister()
15702: }
^ (350) unused label "FCC_ACC_WriteRegister_A" (from line 0) (warning)
^ (350) unused label "FCC_ACC_WriteRegister_B" (from line 0) (warning)
GDBM_v0.18.c: FCM_ACC_ReadRegister()
19164: }
^ (350) unused label "FCC_ACC_ReadRegister_A" (from line 0) (warning)
^ (350) unused label "FCC_ACC_ReadRegister_B" (from line 0) (warning)
GDBM_v0.18.c: default_isr()
19588: FCL_GSM_IN = (PIR1bits.RCIF) && (PIE1bits.RCIE);
^ (255) not a member of the struct/union ""
(255) not a member of the struct/union "" ^
(199) logical type required ^
(199) logical type required ^
19830: PIR1bits.RCIF = 0;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S178
(908) exit status = 1
(908) exit status = 1

Error returned from [xc8.exe]

Post Reply