Open BblackmilkK opened 12 months ago
Hi, it requires LinkedList library to be installed. I'm not sure if any recent version of that library is compatible but I tested it in the past with version 1.2.3 of LinkedList, which is available among other required libraries in here: https://github.com/michalmonday/RFID-cloner/tree/master/rfidCloner%202/src/Working%20copy%20of%20libraries%20(in%20case%20if%20these%20will%20be%20modified%20in%20future)
Hi, it requires LinkedList library to be installed. I'm not sure if any recent version of that library is compatible but I tested it in the past with version 1.2.3 of LinkedList, which is available among other required libraries in here: https://github.com/michalmonday/RFID-cloner/tree/master/rfidCloner%202/src/Working%20copy%20of%20libraries%20(in%20case%20if%20these%20will%20be%20modified%20in%20future)
yes i did it.
Sorry for false information, it seems that 1.2.3 no longer works, updating to LinkedList 1.3.3 (latest as of today) solves these compilation issues.
Just in case, the versions of libraries I have installed with library manager:
Sorry for false information, it seems that 1.2.3 no longer works, updating to LinkedList 1.3.3 (latest as of today) solves these compilation issues.
Just in case, the versions of libraries I have installed with library manager:
* LinkedList 1.3.3 * MFRC522 1.4.10 * ESP8266 and ESP32 OLED driver for SSD1306 displays 4.3.0
i did it :) but same error :
error :
D:\Cache\ESPArdunio\rfidCloner_2\PCinterface.cpp: In member function 'LinkedList~~~~~~~^~
cc1plus.exe: some warnings being treated as errors
In file included from D:\Cache\ESPArdunio\rfidCloner_2\Settings.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type]
17 | bool Set(String key, int val){Set(key, String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type]
18 | bool Set(int key, int val){Set(String(key), String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type]
19 | bool Set(int key, String val){Set(String(key), val);}
| ^
cc1plus.exe: some warnings being treated as errors
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:33,
from D:\Cache\ESPArdunio\rfidCloner_2\GUI.h:20,
from D:\Cache\ESPArdunio\rfidCloner_2\GUI.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type]
17 | bool Set(String key, int val){Set(key, String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type]
18 | bool Set(int key, int val){Set(String(key), String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type]
19 | bool Set(int key, String val){Set(String(key), val);}
| ^
cc1plus.exe: some warnings being treated as errors
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:33,
from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type]
17 | bool Set(String key, int val){Set(key, String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type]
18 | bool Set(int key, int val){Set(String(key), String(val));}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)':
D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type]
19 | bool Set(int key, String val){Set(String(key), val);}
| ^
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:146:47: warning: capture of variable 'rfid' with non-automatic storage duration
146 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); });
| ^~~~
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here
19 | extern Rfid rfid;
| ^~~~
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:178:47: warning: capture of variable 'rfid' with non-automatic storage duration
178 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); });
| ^~~~
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here
19 | extern Rfid rfid;
| ^~~~
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:194:39: warning: capture of variable 'rfid' with non-automatic storage duration
194 | notification.OnAccept(0, [this, rfid](){rfid.DumpToSerial(); Notify(1, "Success\nCheck serial monitor\n:)", 1000);});
| ^~~~
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here
19 | extern Rfid rfid;
| ^~~~
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:274:46: warning: capture of variable 'rfid' with non-automatic storage duration
274 | /onAccept/ [this, file_name, rfid, read_source](){
| ^~~~
In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1:
D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here
19 | extern Rfid rfid;
| ^~~~
cc1plus.exe: some warnings being treated as errors
Using library LinkedList at version 1.3.3 in folder: D:\Cache\libraries\LinkedList Using library MFRC522 at version 1.4.10 in folder: D:\Cache\libraries\MFRC522 Using library SPI at version 1.0 in folder: C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\SPI Using library Wire at version 1.0 in folder: C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\Wire Using library ESP8266 and ESP32 OLED driver for SSD1306 displays at version 4.3.0 in folder: D:\Cache\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays exit status 1
Compilation error: no return statement in function returning non-void [-Werror=return-type]
code is broken can you help me ?
not working.
In file included from D:\rfidCloner_2\PCinterface.h:5, from D:\rfidCloner_2\PCinterface.cpp:1: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]':
d:\Cache\libraries\LinkedList/LinkedList.h:185:15: required from 'bool LinkedList::add(int, T) [with T = String]'
d:\Cache\libraries\LinkedList/LinkedList.h:176:6: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
167 | return false;
| ^~~~~
In file included from D:\rfidCloner_2\MenuOrganizer.h:14,
from D:\rfidCloner_2\GUI.h:20,
from D:\rfidCloner_2\Settings.cpp:5:
d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]':
d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]'
D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
167 | return false;
| ^~~~~
In file included from D:\rfidCloner_2\MenuOrganizer.h:14,
from D:\rfidCloner_2\rfidCloner_2.ino:2:
d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]':
d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]'
D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
167 | return false;
| ^~~~~
In file included from D:\rfidCloner_2\MenuOrganizer.h:14,
from D:\rfidCloner_2\GUI.h:20,
from D:\rfidCloner_2\GUI.cpp:1:
d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]':
d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]'
D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
167 | return false;
| ^~~~~
d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]':
d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = String]'
D:\rfidCloner_2\GUI.cpp:96:29: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
D:\rfidCloner_2\Rfid.cpp: In member function 'bool Rfid::WriteCard()':
D:\rfidCloner_2\Rfid.cpp:231:26: error: control reaches end of non-void function [-Werror=return-type]
231 | mfrc522.PCD_StopCrypto1(); // Stop encryption on PCD
| LinkedList::getNode(int) [with T = MenuOption]':
d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]'
D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
167 | return false;
| ^~~~~
d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]':
d:\Cache\libraries\LinkedList/LinkedList.h:185:15: required from 'bool LinkedList::add(int, T) [with T = String]'
d:\Cache\libraries\LinkedList/LinkedList.h:176:6: required from here
d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode ' in return
~~~~~~~^~ cc1plus.exe: some warnings being treated as errors D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:146:47: warning: capture of variable 'rfid' with non-automatic storage duration 146 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:178:47: warning: capture of variable 'rfid' with non-automatic storage duration 178 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:194:39: warning: capture of variable 'rfid' with non-automatic storage duration 194 | notification.OnAccept(0, [this, rfid](){rfid.DumpToSerial(); Notify(1, "Success\nCheck serial monitor\n:)", 1000);}); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:274:46: warning: capture of variable 'rfid' with non-automatic storage duration 274 | /onAccept/ [this, file_name, rfid, read_source](){ | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.h:14, from D:\rfidCloner_2\MenuOrganizer.cpp:1: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode