Post by dk on Jun 26, 2015 3:03:58 GMT -8
Hey,
At compiletime of the ArduinoConnectServer I get faults in webserver.h
I got the latest file from GitHub, but the problem stays the same.
Arduino: 1.6.5 (Windows 7), Board: "Arduino Uno"
In file included from ArduinoConnectServer.ino:9:0:
WebServer.h:195: error: 'prog_uchar' does not name a type
void printP(const prog_uchar *str);
^
WebServer.h:195: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void printP(const prog_uchar *str);
^
WebServer.h:198: error: 'prog_char' does not name a type
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: 'void WebServer::printP(const int*)' cannot be overloaded
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:195: error: with 'void WebServer::printP(const int*)'
void printP(const prog_uchar *str);
^
WebServer.h:201: error: 'prog_uchar' does not name a type
void writeP(const prog_uchar *data, size_t length);
^
WebServer.h:201: error: ISO C++ forbids declaration of 'data' with no type [-fpermissive]
void writeP(const prog_uchar *data, size_t length);
^
WebServer.h: In member function 'void WebServer::printP(const int*)':
WebServer.h:198: error: 'prog_uchar' was not declared in this scope
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: expected primary-expression before ')' token
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h: At global scope:
WebServer.h:380: error: 'prog_uchar' does not name a type
void WebServer::writeP(const prog_uchar *data, size_t length)
^
WebServer.h:380: error: ISO C++ forbids declaration of 'data' with no type [-fpermissive]
void WebServer::writeP(const prog_uchar *data, size_t length)
^
WebServer.h:402: error: 'prog_uchar' does not name a type
void WebServer::printP(const prog_uchar *str)
^
WebServer.h:402: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void WebServer::printP(const prog_uchar *str)
^
WebServer.h: In member function 'void WebServer::httpFail()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:555:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:562: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::noRobots(WebServer::ConnectionType)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:578:5: note: in expansion of macro 'P'
P(allowNoneMsg) = "User-agent: *" CRLF "Disallow: /" CRLF;
^
WebServer.h:579: error: 'allowNoneMsg' was not declared in this scope
printP(allowNoneMsg);
^
WebServer.h: In member function 'void WebServer::favicon(WebServer::ConnectionType)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:588:5: note: in expansion of macro 'P'
P(faviconIco) = WEBDUINO_FAVICON_DATA;
^
WebServer.h:589: error: 'faviconIco' was not declared in this scope
writeP(faviconIco, sizeof(faviconIco));
^
WebServer.h: In member function 'void WebServer::httpUnauthorized()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:595:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:603: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::httpServerError()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:608:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:615: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::httpSuccess(const char*, const char*)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:621:3: note: in expansion of macro 'P'
P(successMsg1) =
^
WebServer.h:627: error: 'successMsg1' was not declared in this scope
printP(successMsg1);
^
WebServer.h: In member function 'void WebServer::httpSeeOther(const char*)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:637:3: note: in expansion of macro 'P'
P(seeOtherMsg) =
^
WebServer.h:642: error: 'seeOtherMsg' was not declared in this scope
printP(seeOtherMsg);
^
In file included from C:\Program Files (x86)\Arduino\libraries\Ethernet\src/Ethernet.h:7:0,
from ArduinoConnectServer.ino:8:
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/EthernetClient.h: In member function 'int WebServer::read()':
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/EthernetClient.h:27:16: note: candidate 1: virtual bool EthernetClient::operator==(bool)
virtual bool operator==(const bool value) { return bool() == value; }
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:570:0,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:225,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17,
from ArduinoConnectServer.ino:7:
WebServer.h:650:19: note: candidate 2: operator==(int, int) <built-in>
if (m_client == NULL)
^
In file included from ArduinoConnectServer.ino:9:0:
WebServer.h: In member function 'void WebServer::outputCheckboxOrRadio(const char*, const char*, const char*, const char*, bool)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1126:3: note: in expansion of macro 'P'
P(cbPart1a) = "<label><input type='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1127:3: note: in expansion of macro 'P'
P(cbPart1b) = "' name='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1128:3: note: in expansion of macro 'P'
P(cbPart2) = "' value='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1129:3: note: in expansion of macro 'P'
P(cbPart3) = "' ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1130:3: note: in expansion of macro 'P'
P(cbChecked) = "checked ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1131:3: note: in expansion of macro 'P'
P(cbPart4) = "/> ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1132:3: note: in expansion of macro 'P'
P(cbPart5) = "</label>";
^
WebServer.h:1134: error: 'cbPart1a' was not declared in this scope
printP(cbPart1a);
^
WebServer.h:1136: error: 'cbPart1b' was not declared in this scope
printP(cbPart1b);
^
WebServer.h:1138: error: 'cbPart2' was not declared in this scope
printP(cbPart2);
^
WebServer.h:1140: error: 'cbPart3' was not declared in this scope
printP(cbPart3);
^
WebServer.h:1142: error: 'cbChecked' was not declared in this scope
printP(cbChecked);
^
WebServer.h:1143: error: 'cbPart4' was not declared in this scope
printP(cbPart4);
^
WebServer.h:1145: error: 'cbPart5' was not declared in this scope
printP(cbPart5);
^
'prog_uchar' does not name a type
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
At compiletime of the ArduinoConnectServer I get faults in webserver.h
I got the latest file from GitHub, but the problem stays the same.
Arduino: 1.6.5 (Windows 7), Board: "Arduino Uno"
In file included from ArduinoConnectServer.ino:9:0:
WebServer.h:195: error: 'prog_uchar' does not name a type
void printP(const prog_uchar *str);
^
WebServer.h:195: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void printP(const prog_uchar *str);
^
WebServer.h:198: error: 'prog_char' does not name a type
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: 'void WebServer::printP(const int*)' cannot be overloaded
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:195: error: with 'void WebServer::printP(const int*)'
void printP(const prog_uchar *str);
^
WebServer.h:201: error: 'prog_uchar' does not name a type
void writeP(const prog_uchar *data, size_t length);
^
WebServer.h:201: error: ISO C++ forbids declaration of 'data' with no type [-fpermissive]
void writeP(const prog_uchar *data, size_t length);
^
WebServer.h: In member function 'void WebServer::printP(const int*)':
WebServer.h:198: error: 'prog_uchar' was not declared in this scope
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h:198: error: expected primary-expression before ')' token
void printP(const prog_char *str) { printP((prog_uchar*)str); }
^
WebServer.h: At global scope:
WebServer.h:380: error: 'prog_uchar' does not name a type
void WebServer::writeP(const prog_uchar *data, size_t length)
^
WebServer.h:380: error: ISO C++ forbids declaration of 'data' with no type [-fpermissive]
void WebServer::writeP(const prog_uchar *data, size_t length)
^
WebServer.h:402: error: 'prog_uchar' does not name a type
void WebServer::printP(const prog_uchar *str)
^
WebServer.h:402: error: ISO C++ forbids declaration of 'str' with no type [-fpermissive]
void WebServer::printP(const prog_uchar *str)
^
WebServer.h: In member function 'void WebServer::httpFail()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:555:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:562: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::noRobots(WebServer::ConnectionType)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:578:5: note: in expansion of macro 'P'
P(allowNoneMsg) = "User-agent: *" CRLF "Disallow: /" CRLF;
^
WebServer.h:579: error: 'allowNoneMsg' was not declared in this scope
printP(allowNoneMsg);
^
WebServer.h: In member function 'void WebServer::favicon(WebServer::ConnectionType)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:588:5: note: in expansion of macro 'P'
P(faviconIco) = WEBDUINO_FAVICON_DATA;
^
WebServer.h:589: error: 'faviconIco' was not declared in this scope
writeP(faviconIco, sizeof(faviconIco));
^
WebServer.h: In member function 'void WebServer::httpUnauthorized()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:595:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:603: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::httpServerError()':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:608:3: note: in expansion of macro 'P'
P(failMsg) =
^
WebServer.h:615: error: 'failMsg' was not declared in this scope
printP(failMsg);
^
WebServer.h: In member function 'void WebServer::httpSuccess(const char*, const char*)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:621:3: note: in expansion of macro 'P'
P(successMsg1) =
^
WebServer.h:627: error: 'successMsg1' was not declared in this scope
printP(successMsg1);
^
WebServer.h: In member function 'void WebServer::httpSeeOther(const char*)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:637:3: note: in expansion of macro 'P'
P(seeOtherMsg) =
^
WebServer.h:642: error: 'seeOtherMsg' was not declared in this scope
printP(seeOtherMsg);
^
In file included from C:\Program Files (x86)\Arduino\libraries\Ethernet\src/Ethernet.h:7:0,
from ArduinoConnectServer.ino:8:
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/EthernetClient.h: In member function 'int WebServer::read()':
C:\Program Files (x86)\Arduino\libraries\Ethernet\src/EthernetClient.h:27:16: note: candidate 1: virtual bool EthernetClient::operator==(bool)
virtual bool operator==(const bool value) { return bool() == value; }
^
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\eeprom.h:570:0,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/USBAPI.h:25,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:225,
from C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI/SPI.h:17,
from ArduinoConnectServer.ino:7:
WebServer.h:650:19: note: candidate 2: operator==(int, int) <built-in>
if (m_client == NULL)
^
In file included from ArduinoConnectServer.ino:9:0:
WebServer.h: In member function 'void WebServer::outputCheckboxOrRadio(const char*, const char*, const char*, const char*, bool)':
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1126:3: note: in expansion of macro 'P'
P(cbPart1a) = "<label><input type='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1127:3: note: in expansion of macro 'P'
P(cbPart1b) = "' name='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1128:3: note: in expansion of macro 'P'
P(cbPart2) = "' value='";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1129:3: note: in expansion of macro 'P'
P(cbPart3) = "' ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1130:3: note: in expansion of macro 'P'
P(cbChecked) = "checked ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1131:3: note: in expansion of macro 'P'
P(cbPart4) = "/> ";
^
WebServer.h:129: error: 'prog_uchar' does not name a type
#define P(name) static const prog_uchar name[] PROGMEM
^
WebServer.h:1132:3: note: in expansion of macro 'P'
P(cbPart5) = "</label>";
^
WebServer.h:1134: error: 'cbPart1a' was not declared in this scope
printP(cbPart1a);
^
WebServer.h:1136: error: 'cbPart1b' was not declared in this scope
printP(cbPart1b);
^
WebServer.h:1138: error: 'cbPart2' was not declared in this scope
printP(cbPart2);
^
WebServer.h:1140: error: 'cbPart3' was not declared in this scope
printP(cbPart3);
^
WebServer.h:1142: error: 'cbChecked' was not declared in this scope
printP(cbChecked);
^
WebServer.h:1143: error: 'cbPart4' was not declared in this scope
printP(cbPart4);
^
WebServer.h:1145: error: 'cbPart5' was not declared in this scope
printP(cbPart5);
^
'prog_uchar' does not name a type
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.