easyMesh: error compiling; issue with SimpleList
amazing work you’ve done here, thank you. but I keep getting errors compiling you’re startHere. trying to read your source codes and can’t solve the problem. any help and insight will appreciated.
Arduino: 1.6.9 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
In file included from
...\Arduino\libraries\easyMesh\src\eashMeshConnection.cpp:18:0:
...\Arduino\libraries\easyMesh\src\easyMesh.h: In instantiation of 'T* SimpleList<T>::erase(SimpleList<T>::iterator) [with T = meshConnectionType; SimpleList<T>::iterator = meshConnectionType*]':
...\Arduino\libraries\easyMesh\src\eashMeshConnection.cpp:44:37: required from here
...\Arduino\libraries\easyMesh\src\easyMesh.h:69:8: error: no matching function for call to 'SimpleList<String>::SimpleList(const SimpleList<String>&)'
struct meshConnectionType {
^
...\Arduino\libraries\easyMesh\src\easyMesh.h:69:8: note: candidates are:
In file included from ...\Arduino\libraries\easyMesh\src\eashMeshConnection.cpp:11:0:
...\Arduino\libraries\SimpleList/SimpleList.h:39:5: note: SimpleList<T>::SimpleList(SimpleList<T>&) [with T = String]
SimpleList(SimpleList& from)
^
...\Arduino\libraries\SimpleList/SimpleList.h:39:5: note: no known conversion for argument 1 from 'const SimpleList<String>' to 'SimpleList<String>&'
...\Arduino\libraries\SimpleList/SimpleList.h:22:5: note: SimpleList<T>::SimpleList() [with T = String]
SimpleList()
^
...\Arduino\libraries\SimpleList/SimpleList.h:22:5: note: candidate expects 0 arguments, 1 provided
...\Arduino\libraries\SimpleList/SimpleList.h:51:17: error: initializing argument 1 of 'SimpleList<T>& SimpleList<T>::operator=(SimpleList<T>) [with T = String]'
SimpleList& operator=(SimpleList from)
^
...\Arduino\libraries\SimpleList/SimpleList.h:144:33: note: synthesized method 'meshConnectionType& meshConnectionType::operator=(const meshConnectionType&)' first required here
newArray[i] = _internalArray[i + 1];
^
exit status 1
Error compiling for board Generic ESP8266 Module.
Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (8 by maintainers)
Just to throw something at this. I compiled on win 10 in Arduino 1.6.11. Originally I had an old version and upgraded Arduino and I got a compile error. I deleted all the libs and reinstalled everything fresh, updated the esp8266 in tools -> board manager. Compiled again and it worked. I also recieved some errors on the JSON libs the first time because they were simply too old. If all else fails, delete all and install a fresh batch. A simple upgrade should be enough though.