Compiler errors Arduino CLI编译器“;伊诺;一些基本的草图会导致编译错误

Compiler errors Arduino CLI编译器“;伊诺;一些基本的草图会导致编译错误,compiler-errors,arduino,Compiler Errors,Arduino,我正在尝试使用cli编译器ino编译一个基本的以太网/UDP草图 我从他们的github repo下载了最新版本 inoinit 然后是src/sketch.ino的内容: #include <SPI.h> // needed for Arduino versions later than 0018 #include <Ethernet.h> #include <EthernetUdp.h> // UDP library fro

我正在尝试使用cli编译器ino编译一个基本的以太网/UDP草图

我从他们的github repo下载了最新版本

inoinit
然后是src/sketch.ino的内容:

#include <SPI.h>         // needed for Arduino versions later than 0018
#include <Ethernet.h>
#include <EthernetUdp.h>         // UDP library from: bjoern@cs.stanford.edu 12/30/2008

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {  
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress ip(192, 168, 2, 177);

unsigned int localPort = 8888;      // local port to listen on

// buffers for receiving and sending data
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
char  ReplyBuffer[] = "ack";       // a string to send back

// An EthernetUDP instance to let us send and receive packets over UDP
EthernetUDP Udp;


void setup() {
     // start the Ethernet and UDP:
      Ethernet.begin(mac,ip);
      Udp.begin(localPort);

      Serial.begin(9600);

} [...]
[……]

这似乎是同一个问题,但他们告诉问题是固定的

(Ubuntu 13.10,64位)

WiFi/WiFiClient.cpp
In file included from /usr/share/arduino/hardware/arduino/cores/arduino/Arduino.h:192:0,
                 from /usr/share/arduino/libraries/SPI/SPI.h:15,
                 from /usr/share/arduino/libraries/Ethernet/utility/w5100.h:14,
                 from /usr/share/arduino/libraries/Ethernet/utility/socket.h:4,
                 from /usr/share/arduino/libraries/WiFi/WiFiClient.cpp:4:
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:116:83: error: declaration of C function ‘StringSumHelper& operator+(const StringSumHelper&, const char*)’ conflicts with
/usr/share/arduino/hardware/arduino/cores/arduino/WString.h:115:27: error: previous declaration ‘StringSumHelper& operator+(const StringSumHelper&, const String&)’ here
/usr/share/arduino/libraries/WiFi/WiFiClient.cpp: In member function ‘uint8_t WiFiClient::getFirstSocket()’:
/usr/share/arduino/libraries/WiFi/WiFiClient.cpp:177:12: error: ‘SOCK_NOT_AVAIL’ was not declared in this scope
make: *** [.build/mega2560/WiFi/WiFiClient.o] Fehler 1
Make failed with code 2