jcw/ethercard — Issue #11: Compiler Errors
Author: geekinthesticks
Created: 2011-12-28 11:38:28+00:00
State: open

I have just cloned the git repo to try with Arduino 1.0 IDE. I copied the ethercard directory to /usr/share/arduino/libraries/Ether Card.

So far every example I have tried comes up with compiler errors, either in the library code, or the example itself. For example with WebClient:

webClient.cpp:16:16: error: variable 'website' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
webClient.cpp: In function 'void loop()':
webClient.cpp:52:63: error: invalid conversion from 'const char*' to 'prog_char* {aka char*}' [-fpermissive]
/usr/share/arduino/libraries/EtherCard/EtherCard.h:144:15: error: initializing argument 1 of 'static void EtherCard::browseUrl(prog_char*, const char*, prog_char*, void (*)(uint8_t, uint16_t, uint16_t))' [-fpermissive]

Is the library currently compatabile with Arduino 1.0?