Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error elements redeclared as different kind of entity #542

Open
eagl1 opened this issue May 20, 2024 · 1 comment
Open

error elements redeclared as different kind of entity #542

eagl1 opened this issue May 20, 2024 · 1 comment

Comments

@eagl1
Copy link

eagl1 commented May 20, 2024

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
Copy link
Author

eagl1 commented May 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant