ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.12k stars 204 forks source link

error elements redeclared as different kind of entity #542

Open eagl1 opened 1 month ago

eagl1 commented 1 month ago

Hi,

I'm having a new kind of error, I'm surprised because I wasn't getting this kind of errors before days, and I didn't change the version of the builder.

Here's the code folder: NewFolder.zip

So it's redeclaring the elements again, I don't know if it's a new system in the code builder because I was only designing the GUI and upload it to the MCU, didn't check thoroughly the system of the code generated.

Error messasge:

Arduino: 1.8.19 (Windows 10), Board: "Raspberry Pi Pico, 2MB (no FS), 133 MHz, Small (-Os) (standard), Disabled, Disabled, Disabled, Disabled, None, Pico SDK, IPv4 Only, Default (UF2)"

In file included from E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder.ino:15:

NewFolder_GSLC.h:111:24: error: 'gslc_tsElemRef* E_ELEM_BTN5' redeclared as different kind of entity

  111 | extern gslc_tsElemRef* E_ELEM_BTN5;

      |                        ^~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder_GSLC.h:54:20: note: previous declaration '<unnamed enum> E_ELEM_BTN5'

   54 |       ,E_ELEM_BTN4,E_ELEM_BTN5,E_ELEM_BTN7,E_ELEM_BTN8,E_ELEM_NUMINPUT1

      |                    ^~~~~~~~~~~

NewFolder_GSLC.h:112:24: error: 'gslc_tsElemRef* E_ELEM_NUMINPUT1' redeclared as different kind of entity

  112 | extern gslc_tsElemRef* E_ELEM_NUMINPUT1;

      |                        ^~~~~~~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder_GSLC.h:54:56: note: previous declaration '<unnamed enum> E_ELEM_NUMINPUT1'

   54 |       ,E_ELEM_BTN4,E_ELEM_BTN5,E_ELEM_BTN7,E_ELEM_BTN8,E_ELEM_NUMINPUT1

      |                                                        ^~~~~~~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder_GSLC.h: In function 'void InitGUIslice_gen()':

NewFolder_GSLC.h:188:3: error: lvalue required as left operand of assignment

  188 |   E_ELEM_NUMINPUT1 = pElemRef;

      |   ^~~~~~~~~~~~~~~~

NewFolder_GSLC.h:223:3: error: lvalue required as left operand of assignment

  223 |   E_ELEM_BTN5 = pElemRef;

      |   ^~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder.ino: At global scope:

NewFolder:24:17: error: 'gslc_tsElemRef* E_ELEM_BTN5' redeclared as different kind of entity

   24 | gslc_tsElemRef* E_ELEM_BTN5       = NULL;

      |                 ^~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder_GSLC.h:54:20: note: previous declaration '<unnamed enum> E_ELEM_BTN5'

   54 |       ,E_ELEM_BTN4,E_ELEM_BTN5,E_ELEM_BTN7,E_ELEM_BTN8,E_ELEM_NUMINPUT1

      |                    ^~~~~~~~~~~

NewFolder:25:17: error: 'gslc_tsElemRef* E_ELEM_NUMINPUT1' redeclared as different kind of entity

   25 | gslc_tsElemRef* E_ELEM_NUMINPUT1  = NULL;

      |                 ^~~~~~~~~~~~~~~~

E:\projects_electronics_programming\tft\GUIslice\NewFolder\NewFolder_GSLC.h:54:56: note: previous declaration '<unnamed enum> E_ELEM_NUMINPUT1'

   54 |       ,E_ELEM_BTN4,E_ELEM_BTN5,E_ELEM_BTN7,E_ELEM_BTN8,E_ELEM_NUMINPUT1

      |                                                        ^~~~~~~~~~~~~~~~

exit status 1

'gslc_tsElemRef* E_ELEM_BTN5' redeclared as different kind of entity

Invalid library found in E:\Programs_Files\Arduino\libraries\Nscreen_32-master: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\Nscreen_32-master

Invalid library found in E:\Programs_Files\Arduino\libraries\openHASP-master: no headers files (.h) found in E:\Programs_Files\Arduino\libraries\openHASP-master

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
eagl1 commented 1 month ago

OK I initialized a new project and the issue is gone.