Skip to content
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

SimpleList Error #17

Open
enc0de101 opened this issue Nov 12, 2016 · 1 comment
Open

SimpleList Error #17

enc0de101 opened this issue Nov 12, 2016 · 1 comment

Comments

@enc0de101
Copy link

enc0de101 commented Nov 12, 2016

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: In member function 'void easyMesh::manageConnections()':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:65:16: warning: enumeration value 'REQUESTED' not handled in switch [-Wswitch]

     switch ( connection->nodeSyncStatus ) {

            ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:65:16: warning: enumeration value 'COMPLETE' not handled in switch [-Wswitch]

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:76:16: warning: enumeration value 'REQUESTED' not handled in switch [-Wswitch]

     switch ( connection->timeSyncStatus ) {

            ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:76:16: warning: enumeration value 'COMPLETE' not handled in switch [-Wswitch]

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: In member function 'meshConnectionType* easyMesh::findConnection(espconn*)':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:142:9: warning: unused variable 'i' [-Wunused-variable]

 int i=0;

     ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp: At global scope:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:273:24: warning: unused parameter 'length' [-Wunused-parameter]

void ICACHE_FLASH_ATTR easyMesh::meshRecvCb(void *arg, char *data, unsigned short length) {

                    ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:377:24: warning: unused parameter 'arg' [-Wunused-parameter]

void ICACHE_FLASH_ATTR easyMesh::meshReconCb(void *arg, sint8 err) {

                    ^

In file included from C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:18:0:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h: In instantiation of 'T* SimpleList::erase(SimpleList::iterator) [with T = meshConnectionType; SimpleList::iterator = meshConnectionType*]':

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:44:37: required from here

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h:69:8: error: no matching function for call to 'SimpleList::SimpleList(const SimpleList&)'

struct meshConnectionType {

    ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\easyMesh.h:69:8: note: candidates are:

In file included from C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src\eashMeshConnection.cpp:11:0:

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:39:5: note: SimpleList::SimpleList(SimpleList&) [with T = String]

 SimpleList(SimpleList& from)

 ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:39:5: note: no known conversion for argument 1 from 'const SimpleList' to 'SimpleList&'

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:22:5: note: SimpleList::SimpleList() [with T = String]

 SimpleList()

 ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:22:5: note: candidate expects 0 arguments, 1 provided

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/SimpleList.h:51:17: error: initializing argument 1 of 'SimpleList& SimpleList::operator=(SimpleList) [with T = String]'

 SimpleList& operator=(SimpleList from)

             ^

C:\Users\Enc0de\Documents\Arduino\libraries\easyMesh-master\src/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 NodeMCU 0.9 (ESP-12 Module).

@enc0de101
Copy link
Author

I just found the solution.

Don't use the release folder of SimpleList lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant