You are not logged in.
I am trying to use the EtherCard library and having problems compiling it with the 1.0 IDE. See https://github.com/jcw/ethercard/issues/11 for my bug report.
However, if I install the EtherCard library and Arduino 1.0 IDE in Ubuntu Natty I can compile the examples with no problems. The main difference I can find is that gcc is 4.5.2 in Ubuntu and 4.6.2.in Arch. I am definitely not a C++ expert, so am having problems trying to track down the source of the errors. A typical error looks like this
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 anyone else using this library on Arch?
Last edited by geekinthesticks (2012-01-01 09:53:48)
Offline