Skip to content

Arduino IDE 22 Compile Error #1

Description

@sirleech

Reported by [email protected], 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 [email protected], Apr 16, 2011
Ok, thanks for very fast reply
Comment 5 by [email protected], Apr 25, 2011
I'm having the same issue, also running 22.
Comment 6 by [email protected], May 3, 2011
Add
#include <avr/pgmspace.h>
to the includes. That worked for me.
Comment 7 by [email protected], 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 [email protected], 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 [email protected], 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 [email protected], Today (7 minutes ago)
@ben.combee, are you planning on committing these changes into a new download file?

Activity

  1. added a commit that references this issue on May 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions