Intrebare switchbot 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: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:
Avatar utilizator
SkyLine
Membru Club

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

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.
Avatar utilizator
nicucocis
Nivel 1

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

SkyLine scrie: ↑05 Sep 2022, 16:58 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.
am c++ 17
astea le da orice as face:

../../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));
Avatar utilizator
SkyLine
Membru Club

Membru Club
Mesaje: 2655
Membru din: 12 Dec 2013, 23:37
Server: Miraj2-Online
Regat: Jinno
Aprecieri: 520  
Mulţumiri: 987  
Discord: Copiază ID
 Contact:
Medalii

nicucocis scrie: ↑05 Sep 2022, 17:04
SkyLine scrie: ↑05 Sep 2022, 16:58 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.
am c++ 17
astea le da orice as face:

../../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));
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.
Avatar utilizator
LoTTrYY
Membru Club

Membru Club
Mesaje: 363
Membru din: 13 Noi 2020, 15:31
Server: WoG2.net
Regat: Jinno
Aprecieri: 425  
Mulţumiri: 436  
 Contact:
Medalii

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()
Daca doresti un server pvp clasic , cu systeme la zi si un staff matur [Adica eu :))] .. puteti incerca https://wog2.net/ . Va doresc o zi frumoasa in continuare.
Afișează semnătura
Avatar utilizator
nicucocis
Nivel 1

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

LoTTrYY 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()
pentru mainline nu gasesc nimic
Avatar utilizator
Ionuţ M.
Metin Master

Metin Master
Mesaje: 2680
Membru din: 28 Noi 2015, 22:02
Aprecieri: 170  
Mulţumiri: 12723  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

Inactiv, arhivat.
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
168
Răspunsuri
1
Vizualizări
83
Răspunsuri
11
Vizualizări
1083
Răspunsuri
2
Vizualizări
67

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

  • Informaţie
  • Cine este conectat

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