sparkfun/WiFly-Shield — Issue #7: does not compile under arduino 1.0 IDE
Author: jmr13031
Created: 2011-12-18 22:51:12+00:00
State: open

WProgram.h needs to be arduino.h in 1.0 and for some reason, the overloads of "write" function are not working....

In file included from C:\arduino-1.0\libraries\WiFly/SpiUart.h:7,
from C:\arduino-1.0\libraries\WiFly/WiFly.h:4,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/_Spi.h:8:22: error: WProgram.h: No such file or directory
In file included from C:\arduino-1.0\libraries\WiFly/SpiUart.h:7,
from C:\arduino-1.0\libraries\WiFly/WiFly.h:4,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/_Spi.h:19: error: 'byte' has not been declared
C:\arduino-1.0\libraries\WiFly/_Spi.h:25: error: 'byte' does not name a type
C:\arduino-1.0\libraries\WiFly/_Spi.h:33: error: 'byte' does not name a type
In file included from C:\arduino-1.0\libraries\WiFly/WiFly.h:4,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/SpiUart.h:56: error: expected class-name before '{' token
C:\arduino-1.0\libraries\WiFly/SpiUart.h:60: error: 'byte' does not name a type
C:\arduino-1.0\libraries\WiFly/SpiUart.h:62: error: 'byte' has not been declared
C:\arduino-1.0\libraries\WiFly/SpiUart.h:67: error: 'Print' has not been declared
C:\arduino-1.0\libraries\WiFly/SpiUart.h:76: error: 'byte' has not been declared
C:\arduino-1.0\libraries\WiFly/SpiUart.h:76: error: 'byte' has not been declared
C:\arduino-1.0\libraries\WiFly/SpiUart.h:77: error: 'byte' does not name a type
C:\arduino-1.0\libraries\WiFly/SpiUart.h:81: error: 'boolean' does not name a type
In file included from C:\arduino-1.0\libraries\WiFly/WiFly.h:6,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:13: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:14: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:17: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:39: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:51: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:56: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:58: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:59: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:60: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/WiFlyDevice.h:61: error: 'boolean' does not name a type
In file included from C:\arduino-1.0\libraries\WiFly/WiFly.h:8,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/Client.h:19: error: 'boolean' does not name a type
C:\arduino-1.0\libraries\WiFly/Client.h:21: error: 'byte' has not been declared
C:\arduino-1.0\libraries\WiFly/Client.h:23: error: conflicting return type specified for 'virtual void Client::write(const uint8_t*, size_t)'
C:\arduino-1.0\hardware\arduino\cores\arduino/Print.h:50: error: overriding 'virtual size_t Print::write(const uint8_t*, size_t)'
In file included from C:\arduino-1.0\libraries\WiFly/WiFly.h:9,
from WiFly_WebServer.cpp:9:
C:\arduino-1.0\libraries\WiFly/Server.h:15: error: cannot declare field 'Server::activeClient' to be of abstract type 'Client'
C:\arduino-1.0\libraries\WiFly/Client.h:14: note: because the following virtual functions are pure within 'Client':
C:\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: note:	virtual size_t Print::write(uint8_t)
WiFly_WebServer.cpp: In function 'void setup()':
WiFly_WebServer.pde:-1: error: 'class WiFlyDevice' has no member named 'join'
WiFly_WebServer.cpp: In function 'void loop()':
WiFly_WebServer.pde:-1: error: cannot allocate an object of abstract type 'Client'
C:\arduino-1.0\libraries\WiFly/Client.h:14: note: since type 'Client' has pure virtual functions
WiFly_WebServer.pde:-1: error: cannot declare variable 'client' to be of abstract type 'Client'
C:\arduino-1.0\libraries\WiFly/Client.h:14: note: since type 'Client' has pure virtual functions