-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nor install :( error code : #6
Comments
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: |
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:
|
|
error : D:\Cache\ESPArdunio\rfidCloner_2\PCinterface.cpp: In member function 'LinkedList PCinterface::GetFileList()': Using library LinkedList at version 1.3.3 in folder: D:\Cache\libraries\LinkedList 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
| ~~~~~~~~~~~~~~~~~~~~~~~^~
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 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
The text was updated successfully, but these errors were encountered: