eroare compilare db switchboot sanni

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
nicucocis
Nivel 1

Nivel 1
Mesaje: 108
Membru din: 06 Iul 2022, 12:07
Regat: Jinno
Aprecieri: 203  
Mulţumiri: 2  
Medalii

*Problemă/Întrebare:Stie cineva de la ce ii eroarea asta ,am refacut de cateva ori tutorialul si la fel,doar la db are eroare!!
Tipologie server:
*Resursă folosită: sursa/switchbot-sanii-sloturi-functie-save-t103346.html
*ServerFiles utilizat:
*Syserr:
../../common/tables.h: In member function 'bool TSwitchbotAttributeAlternativeTable::IsConfigured() const':
../../common/tables.h:1515:25: error: 'attributes' was not declared in this scope
for (const auto& it : attributes)
^~~~~~~~~~
../../common/tables.h:1515:25: note: suggested alternative: '__attribute__'
for (const auto& it : attributes)
^~~~~~~~~~
__attribute__
../../common/tables.h: At global scope:
../../common/tables.h:1530:14: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
bool active[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h:1531:16: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
bool finished[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h:1532:14: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
DWORD items[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h:1533:51: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h:1533:73: error: 'SWITCHBOT_ALTERNATIVE_COUNT' was not declared in this scope
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../common/tables.h: In constructor 'TSwitchbotTable::TSwitchbotTable()':
../../common/tables.h:1537:11: error: 'items' was not declared in this scope
memset(&items, 0, sizeof(items));
^~~~~
../../common/tables.h:1538:11: error: 'alternatives' was not declared in this scope
memset(&alternatives, 0, sizeof(alternatives));
^~~~~~~~~~~~
../../common/tables.h:1539:11: error: 'active' was not declared in this scope
memset(&active, false, sizeof(active));
^~~~~~
../../common/tables.h:1539:11: note: suggested alternative: 'ctime'
memset(&active, false, sizeof(active));
^~~~~~
ctime
../../common/tables.h:1540:11: error: 'finished' was not declared in this scope
memset(&finished, false, sizeof(finished));

Poză:
*Detalii suplimentare:
Avatar utilizator
Dex
Nivel 3

Nivel 3
Mesaje: 397
Membru din: 07 Mai 2020, 14:32
Regat: Shinsoo
Aprecieri: 137  
Mulţumiri: 486  
Discord: Copiază ID
Medalii

ai gresit la implementare, posibil sa iti lipseasca un include. Refa tutorialul.
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
170
Răspunsuri
6
Vizualizări
245
Răspunsuri
6
Vizualizări
656
Răspunsuri
13
Vizualizări
1261

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 20 vizitatori