sirleech/Webduino

Arduino IDE 22 Compile Error

Closed this issue · 0 comments

Reported by BiosL...@gmail.com, Apr 16, 2011
When I try to compile example , such as Web_Demo I get :

In file included from Web_Demo.cpp:24:
/usr/share/arduino/libraries/webduino/WebServer.h:141: erreur: expected ‘,’ or ‘...’ before ‘*’ token
/usr/share/arduino/libraries/webduino/WebServer.h:141: erreur: ISO C++

... 87 errors later ...

Web_Demo.cpp:98: erreur: ‘htmlHead’ was not declared in this scope

I check my path, and it is good. Any idea ?

Comment 1 by project member ben.combee, Apr 16, 2011
This seems to be an issue with compatibility with the newer Arduino environment. The project needs to be updated for Arduino 22
Status: Accepted
Comment 2 by project member ben.combee, Apr 16, 2011
(No comment was entered for this change.)
Owner: ben.combee
Comment 3 by project member ben.combee, Apr 16, 2011
(No comment was entered for this change.)
Labels: -Priority-Medium Priority-Critical
Comment 4 by BiosL...@gmail.com, Apr 16, 2011
Ok, thanks for very fast reply
Comment 5 by clonex_k...@hotmail.com, Apr 25, 2011
I'm having the same issue, also running 22.
Comment 6 by t...@3tones.com, May 3, 2011
Add
#include <avr/pgmspace.h>
to the includes. That worked for me.
Comment 7 by rafalwyt...@gmail.com, May 25, 2011
I've got the same problem, but adding:

include <avr/pgmspace.h>

didn't work for me :/

Any ideas?
Comment 8 by don.owen...@gmail.com, Jun 5, 2011
It should have worked. Make sure that you put "avr.pgmspace.h" and "SPI.h" before the

include "Ethernet.h"

include "WebServer.h"

so now it will include

include "SPI.h" // new include

include "avr/pgmspace.h" // new include

include "Ethernet.h"

include "WebServer.h"

I'm surprised no one had answered this, as it is broken in arduino-22
Comment 9 by don.owen...@gmail.com, Jun 5, 2011
I should also add that you might want to add the

include "avr/pgmspace.h"

to the WebServer.h which is the main webduino file. However the demo file needs the aforementioned SPI.h file to compile as well because the Ethernet.h import needs it. I hope this helps.
Delete comment Comment 10 by ch...@australianrobotics.com.au, Today (7 minutes ago)
@ben.combee, are you planning on committing these changes into a new download file?