Webduino and arduino-0022 compile issues?

Hi - arduino noob I'm afriad!

I've followed the instructions for getting webduino 1.4.1 into the webduino IDE, but trying to compile produces all sorts of errors, but the prevalent one seems to be

  • ISO C++ forbids declaration of 'prog_uchar' with no type

Is anyone else having this problem or is it just me?

I've also got an eclipse environment that works with other arduino projects and I get the same errors

Any thoughts would be greatly appreciated!

Could the file extension on your sketch be .cpp instead of .pde? That would prevent Arduino from adding the standard Arduino #includes.

To use the prog_uchar type, someone has to include the definitions:

#include <avr/pgmspace.h>

Perhaps adding that will help.

The Webduino examples have some flaws and misses an include. Add

#include <SPI.h>

And you will be fine.

Many thanks to you all.

for reference, I imported project into eclipse and #include'd SPI.h and and others and split webserver.h out into a webserver.cpp as well and got up and running.

As an aside, found I had to add:



define PROGMEM attribute((section(".progmem.data")))


to stop various compiler warnings in eclipse

Finding Webduino very flexible and extensible and enjoying...

And now if only you would teach know-nothings like me how to do that. sigh...

I'm gonna go back to my sketches and sulk.