Wie bekomme ich die Fehler weg

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave/ModbusRTUSlave.h:5:0,

             from C:\Users\Benutzer1\Desktop\Talla_Modbus_001\Talla_Modbus\Talla_Modbus.ino:7:

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave/utility/LinkedList.h:311:3: warning: redeclaration of 'T LinkedList::get(int, bool)' may not have default arguments [-fpermissive]

T LinkedList::get(int index, bool useCached = false){

^~~~~~~~~~~~~

In file included from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.h:5:0,

             from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:1:

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:311:3: warning: redeclaration of 'T LinkedList::get(int, bool)' may not have default arguments [-fpermissive]

T LinkedList::get(int index, bool useCached = false){

^~~~~~~~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'LinkedList::LinkedList() [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:10:54: required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

root=false;


C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:102:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

last=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'LinkedList<T>::LinkedList() [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:11:52:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

root=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:102:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

last=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'bool LinkedList<T>::add(T) [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:24:65:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:192:12: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

tmp->next = false;

~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'bool LinkedList<T>::add(T) [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:34:63:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:192:12: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:312:28:   required from 'T LinkedList<T>::get(int, bool) [with T = ModbusRTUSlaveWordAddress*]'

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:45:46:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:158:9: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in return

return false;

       ^~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:312:28:   required from 'T LinkedList<T>::get(int, bool) [with T = ModbusRTUSlaveBitAddress*]'

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:55:44:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:158:9: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in return

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'T LinkedList<T>::pop() [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:390:1:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:248:13: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 tmp->next = false;

 ~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:256:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 root = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:257:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 last = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'T LinkedList<T>::pop() [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:390:1:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:248:13: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 tmp->next = false;

 ~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:256:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 root = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:257:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 last = false;

 ~~~~~^~~~~~~

Mehrere Bibliotheken wurden für "ModbusRTUSlave.h" gefunden

Benutzt: C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave

Nicht benutzt: C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave_RS485

exit status 1

Fehler beim Kompilieren für das Board Arduino Mega or Mega 2560.



Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Da hast was drin, was nicht passt.

Das was da unter Benutzt eingetragen "C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave" mal komplett dort rauslöschen.

Das solltest Du tun.

Es sind noch folgende Fehler vorhanden, was muss ich tun um diese weg zu bekommen?

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

In file included from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave/ModbusRTUSlave.h:5:0,

             from C:\Users\Benutzer1\Desktop\Talla_Modbus_001\Talla_Modbus\Talla_Modbus.ino:7:

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave/utility/LinkedList.h:311:3: warning: redeclaration of 'T LinkedList::get(int, bool)' may not have default arguments [-fpermissive]

T LinkedList::get(int index, bool useCached = false){

^~~~~~~~~~~~~

In file included from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.h:5:0,

             from C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:1:

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:311:3: warning: redeclaration of 'T LinkedList::get(int, bool)' may not have default arguments [-fpermissive]

T LinkedList::get(int index, bool useCached = false){

^~~~~~~~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'LinkedList::LinkedList() [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:10:54: required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

root=false;


C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:102:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

last=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'LinkedList<T>::LinkedList() [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:11:52:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:101:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

root=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:102:6: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

last=false;

~~~~^~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'bool LinkedList<T>::add(T) [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:24:65:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:192:12: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

tmp->next = false;

~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'bool LinkedList<T>::add(T) [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:34:63:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:192:12: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:312:28:   required from 'T LinkedList<T>::get(int, bool) [with T = ModbusRTUSlaveWordAddress*]'

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:45:46:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:158:9: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in return

return false;

       ^~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'ListNode<T>* LinkedList<T>::getNode(int) [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:312:28:   required from 'T LinkedList<T>::get(int, bool) [with T = ModbusRTUSlaveBitAddress*]'

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:55:44:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:158:9: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in return

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'T LinkedList<T>::pop() [with T = ModbusRTUSlaveBitAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:390:1:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:248:13: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 tmp->next = false;

 ~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:256:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 root = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:257:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveBitAddress*>*' in assignment

 last = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h: In instantiation of 'T LinkedList<T>::pop() [with T = ModbusRTUSlaveWordAddress*]':

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\ModbusRTUSlave.cpp:390:1:   required from here

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:248:13: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 tmp->next = false;

 ~~~~~~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:256:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 root = false;

 ~~~~~^~~~~~~

C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave\utility/LinkedList.h:257:8: error: cannot convert 'bool' to 'ListNode<ModbusRTUSlaveWordAddress*>*' in assignment

 last = false;

 ~~~~~^~~~~~~

Mehrere Bibliotheken wurden für "ModbusRTUSlave.h" gefunden

Benutzt: C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave

Nicht benutzt: C:\Users\Benutzer1\Documents\Arduino\libraries\ModbusRTU_Slave_RS485

exit status 1

Fehler beim Kompilieren für das Board Arduino Uno.



Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.

Zu versuchen gut gemeinte Ratschläge nicht zu ignorieren.