Hello,
I cannot compiled any sketch including Ethernet.h.
I tried this, some hours without a solution.
All others examples sketch compile fine.
Have you an idea to fix this ?
Regards.
The sketch : #include <SPI.h>
#include <Ethernet.h>
// the media access control (ethernet hardware) address for the shield:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
//the IP address for the shield:
byte ip[] = { 10, 0, 0, 177 };
void setup()
{
Ethernet.begin(mac, ip);
}
void loop () {}
The errors :/usr/share/arduino/libraries/Ethernet/Ethernet.cpp: In member function ‘void EthernetClass::begin(uint8_t*, IPAddress, IPAddress, IPAddress, IPAddress)’:
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:64:39: error: no matching function for call to ‘W5100Class::setIPAddress(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:64:39: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:392:6: note: void W5100Class::setIPAddress(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:392:6: note: no known conversion for argument 1 from ‘IPAddress::<anonymous union>’ to ‘uint8_t* {aka unsigned char*}’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:65:38: error: no matching function for call to ‘W5100Class::setGatewayIp(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:65:38: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:368:6: note: void W5100Class::setGatewayIp(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:368:6: note: no known conversion for argument 1 from ‘IPAddress::<anonymous union>’ to ‘uint8_t* {aka unsigned char*}’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:66:38: error: no matching function for call to ‘W5100Class::setSubnetMask(IPAddress::<anonymous union>&)’
/usr/share/arduino/libraries/Ethernet/Ethernet.cpp:66:38: note: candidate is:
In file included from /usr/share/arduino/libraries/Ethernet/Ethernet.cpp:1:0:
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:376:6: note: void W5100Class::setSubnetMask(uint8_t*)
/usr/share/arduino/libraries/Ethernet/utility/w5100.h:376:6: note: no known conversion for argument 1 from ‘IPAddress::<anonymous union>’ to ‘uint8_t* {aka unsigned char*}’
Arduino program release 1.0.1 from Debian Testing on a Debian Squeeze base. This distribution works very fine and is stable for me.
.
$ avr-gcc --version
avr-gcc (GCC) 4.7.0