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

not compiled. esp8266 #71

Open
whakru opened this issue May 9, 2020 · 3 comments
Open

not compiled. esp8266 #71

whakru opened this issue May 9, 2020 · 3 comments

Comments

@whakru
Copy link

whakru commented May 9, 2020

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:36:83: error: default argument given for parameter 3 of 'bool SocketIOClient::connect(char*, int, char*)' [-fpermissive]

bool SocketIOClient::connect(char thehostname[], int theport, char thequery[] = "") {

                                                                               ^

In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:48:7: error: after previous specification in 'bool SocketIOClient::connect(char*, int, char*)' [-fpermissive]

bool connect(char hostname[], int port = 80, char query[] = "");

   ^

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:52:85: error: default argument given for parameter 3 of 'bool SocketIOClient::reconnect(char*, int, char*)' [-fpermissive]

bool SocketIOClient::reconnect(char thehostname[], int theport, char thequery[] = "")

                                                                                 ^

In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:52:7: error: after previous specification in 'bool SocketIOClient::reconnect(char*, int, char*)' [-fpermissive]

bool reconnect(char hostname[], int port = 80, char query[] = "");

   ^

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:172:70: error: default argument given for parameter 2 of 'void SocketIOClient::sendHandshake(char*, char*)' [-fpermissive]

void SocketIOClient::sendHandshake(char hostname[], char query[] = "") {

                                                                  ^

In file included from C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master\SocketIOClient.cpp:26:0:

C:\Users\oao-a\Documents\Arduino\libraries\Socket.io-v1.x-Library-master/SocketIOClient.h:66:7: error: after previous specification in 'void SocketIOClient::sendHandshake(char*, char*)' [-fpermissive]

void sendHandshake(char hostname[], char query[] = "");

   ^

exit status 1
Ошибка компиляции.

@washo4evr
Copy link
Owner

Hi whakru,

are you using the demo code? or did you write custom code?

@xdubx
Copy link

xdubx commented Jun 10, 2020

Same issue on the esp32. Your lib is broke. I complied it on cpp17.

@xdubx
Copy link

xdubx commented Jun 10, 2020

@whakru you can use the build from the commit b758f5e. It complies.

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

3 participants