*Problemă/Întrebare:Salut, merge sa instalezi switchbot sanni pe sursa server c++17 si gcc7 ca mie imi da erori cu toate tutorialele posibile!!!
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
Poză:
*Detalii suplimentare:
Intrebare switchbot sanni
- SkyLine
-

- Mesaje: 2655
- Membru din: 12 Dec 2013, 23:37
- Server: Miraj2-Online
- Regat: Jinno
- Aprecieri: 520
- Mulţumiri: 987
- Discord: Copiază ID
- Contact:
Sanii Switchbot foloseste C++ de la 11 in sus. GCC7 este compilatorul, tu trebuie sa verifici sa ai versiunea de C++11 (sau mai mare). Deci raspuns la intrebarea ta, da, merge.
Posteaza aici si erorile pe care le primesti, daca tot.
Posteaza aici si erorile pe care le primesti, daca tot.
am c++ 17
astea le da orice as face:
../../common/tables.h: In member function 'bool TSwitchbotAttributeAlternativeTable::IsConfigured() const':
../../common/tables.h
for (const auto& it : attributes)
^~~~~~~~~~
../../common/tables.h
for (const auto& it : attributes)
^~~~~~~~~~
__attribute__
../../common/tables.h: At global scope:
../../common/tables.h
bool active[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h
bool finished[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h
DWORD items[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../common/tables.h: In constructor 'TSwitchbotTable::TSwitchbotTable()':
../../common/tables.h
memset(&items, 0, sizeof(items));
^~~~~
../../common/tables.h
memset(&alternatives, 0, sizeof(alternatives));
^~~~~~~~~~~~
../../common/tables.h
memset(&active, false, sizeof(active));
^~~~~~
../../common/tables.h
memset(&active, false, sizeof(active));
^~~~~~
ctime
../../common/tables.h
memset(&finished, false, sizeof(finished));
- SkyLine
-

- Mesaje: 2655
- Membru din: 12 Dec 2013, 23:37
- Server: Miraj2-Online
- Regat: Jinno
- Aprecieri: 520
- Mulţumiri: 987
- Discord: Copiază ID
- Contact:
Eu zic sa refaci tutorialul de la 0.. Acel SWITCHBOT_SLOT_COUNT, cel putin, verifica-l sa-l ai in common/length.h. Restul nu le recunosc asa din erori, dar pe ala da.nicucocis scrie: ↑05 Sep 2022, 17:04am c++ 17
astea le da orice as face:
../../common/tables.h: In member function 'bool TSwitchbotAttributeAlternativeTable::IsConfigured() const':
../../common/tables.h25: error: 'attributes' was not declared in this scope
for (const auto& it : attributes)
^~~~~~~~~~
../../common/tables.h25: note: suggested alternative: '__attribute__'
for (const auto& it : attributes)
^~~~~~~~~~
__attribute__
../../common/tables.h: At global scope:
../../common/tables.h14: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
bool active[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h16: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
bool finished[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h14: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
DWORD items[SWITCHBOT_SLOT_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h51: error: 'SWITCHBOT_SLOT_COUNT' was not declared in this scope
TSwitchbotAttributeAlternativeTable alternatives[SWITCHBOT_SLOT_COUNT][SWITCHBOT_ALTERNATIVE_COUNT];
^~~~~~~~~~~~~~~~~~~~
../../common/tables.h73: 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.h11: error: 'items' was not declared in this scope
memset(&items, 0, sizeof(items));
^~~~~
../../common/tables.h11: error: 'alternatives' was not declared in this scope
memset(&alternatives, 0, sizeof(alternatives));
^~~~~~~~~~~~
../../common/tables.h11: error: 'active' was not declared in this scope
memset(&active, false, sizeof(active));
^~~~~~
../../common/tables.h11: note: suggested alternative: 'ctime'
memset(&active, false, sizeof(active));
^~~~~~
ctime
../../common/tables.h11: error: 'finished' was not declared in this scope
memset(&finished, false, sizeof(finished));
Acel SWITCHBOT_SLOT_COUNT si altele vezi .. ca sunt facute pentru marty unele variante de pe internet si altele sunt facute sa mearga si pe mainline(sursa default) .. de exemplu pentru sloturi si etc trebuie sa modifici anumite chestii prin lenght.h si etc.. si dupa eroarea ca ti-o da tu nu ai definit corect TSwitchbotTable::TSwitchbotTable()
pentru mainline nu gasesc nimicLoTTrYY scrie: ↑06 Sep 2022, 19:34 Acel SWITCHBOT_SLOT_COUNT si altele vezi .. ca sunt facute pentru marty unele variante de pe internet si altele sunt facute sa mearga si pe mainline(sursa default) .. de exemplu pentru sloturi si etc trebuie sa modifici anumite chestii prin lenght.h si etc.. si dupa eroarea ca ti-o da tu nu ai definit corect TSwitchbotTable::TSwitchbotTable()
- Ionuţ M.
-

- Mesaje: 2680
- Membru din: 28 Noi 2015, 22:02
- Aprecieri: 170
- Mulţumiri: 12723
- Rezolvări prob.: 2
- Discord: Copiază ID
- Contact:
Inactiv, arhivat.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 190 vizitatori
