sirleech / Webduino

Arduino WebServer library
748 stars 264 forks source link

Webduino 1.7 and Arduino IDE 1.06 #60

Open rrobinet opened 9 years ago

rrobinet commented 9 years ago

Hi,

I have an issue while compiling code with the Webserver.h library and the version 1.06 of the Arduino IDE (there are no error with version 1.05)

Typical error messages while compiling the Web_HelloWorld.ino sketch are described below

Any idea of how can this be solved?

Thanks in advance Robert

The error messages are:

In file included from Web_HelloWorld.ino:5: /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h: In member function 'int WebServer::read()': /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h:729: error: ambiguous overload for 'operator==' in '((WebServer*)this)->WebServer::m_client == 0' /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h:729: note: candidates are: operator==(int, int) /Applications/Arduino-1.06.app/Contents/Resources/Java/libraries/Ethernet/EthernetClient.h:27: note: virtual bool EthernetClient::operator==(const EthernetClient&)

unwiredben commented 9 years ago

Have you used the latest version from GitHub? We merged in changes for that, IIRC.

-----Original Message----- From: "Robert" notifications@github.com Sent: ‎10/‎4/‎2014 5:36 PM To: "sirleech/Webduino" Webduino@noreply.github.com Subject: [Webduino] Webduino 1.7 and Arduino IDE 1.06 (#60)

Hi, I have an issue while compiling code with the Webserver.h library and the version 1.06 of the Arduino IDE (there are no error with version 1.05) Typical error messages while compiling the Web_HelloWorld.ino sketch are described below Any idea of how can this be solved? Thanks in advance Robert The error messages are: In file included from Web_HelloWorld.ino:5: /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h: In member function 'int WebServer::read()': /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h:729: error: ambiguous overload for 'operator==' in '((WebServer*)this)->WebServer::m_client == 0' /Users/Robert/Data/Our Documents/Projets Techniques/Domotic/Arduino/Sketch/libraries/Webduino/WebServer.h:729: note: candidates are: operator==(int, int) /Applications/Arduino-1.06.app/Contents/Resources/Java/libraries/Ethernet/EthernetClient.h:27: note: virtual bool EthernetClient::operator==(const EthernetClient&) — Reply to this email directly or view it on GitHub.=

rrobinet commented 9 years ago

Well I was comparing my version level which was the one of Github which was ok, but you are right the current 1.7 is better than the old 1.7 :-) Maybe a change of the release version should avoid this issue.

Thanks anyway Robert