Problem compiling with IDE 1.5.8

Hello,

first, I’m pretty new to arduino, I just did sometime ago a project with an Arduino Ethernet Board, controlling servo throught OSC communication. I got really excited about it so, when i saw the Yùn Board, i thought I really want to adapt my project in a wireless version.
I did a little code to try to turn on and off LED13 over wireless communication.
It compile without any problem on the previous version I was using (1.0.5), but I had to upgrade to a new version ( 1.5.8) to be Yùn compatible.
I know this latest version is beta, and since i’m a newbie, it’s really hard for me to understand if the problem is coming from my code or from the IDE version (it seems like it’s coming from the ArdOSC library)
any ideas of what I could do?
My code below

thanks!

#include <SPI.h>
#include <Ethernet.h>
#include <ArdOSC.h>
int led = 13;

byte serverMac[] = { 0x90, 0xA2, 0xDA, 0xF0, 0x49, 0xE1 }; 
byte serverIp[]  = { 192, 168, 1, 108 };
int  serverPort  = 1234;

//instantiate OSCServer and OSCMessage classes
OSCServer server;
OSCMessage *_msg;

void setup() {
 pinMode(led, OUTPUT);
 server.begin(serverPort);
 server.addCallback("/ard/led",&LED);

}

void loop() {
//if(server.aviableCheck()>0){
   //Serial.println("alive! ");
  //}
 }
 
 void LED(OSCMessage *msg){
     int ledval = (int) msg->getArgFloat(0);
     Serial.println(ledval);
     
     if(ledval >=1) {
       digitalWrite(led, HIGH);
     }
     if(ledval = 0) {
       digitalWrite(led, LOW);
     }
 }

Please copy and paste the full error messages here.

Here it is:

Arduino : 1.5.8 (Mac OS X), Carte : "Arduino Yún"

Utilisation de la bibliothèque SPI prise dans le dossier : /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI Utilisation de la bibliothèque Ethernet prise dans le dossier : /Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet Utilisation de la bibliothèque ArdOSC prise dans le dossier : /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC (legacy)

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_YUN -DARDUINO_ARCH_AVR -DUSB_VID=0x2341 -DUSB_PID=0x8041 -DUSB_MANUFACTURER= -DUSB_PRODUCT="Arduino Yun" -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/variants/yun -I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI -I/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/src -I/Users/Flashbacker/Documents/Arduino/libraries/ArdOSC /var/folders/rq/6zjf0_gd4lx0n9_fy_b_83cr0000gn/T/build8368869733225206570.tmp/Yun_wifi_led.cpp -o /var/folders/rq/6zjf0_gd4lx0n9_fy_b_83cr0000gn/T/build8368869733225206570.tmp/Yun_wifi_led.cpp.o In file included from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCClient.h:21:0, from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/ArdOSC.h:55, from Yun_wifi_led.ino:3: /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCEncoder.h:27:33: error: 'OSCMessage::OSCMessage' is not a type int16_t encode( OSCMessage::OSCMessage *mes ,uint8_t *_binData ); ^ In file included from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/ArdOSC.h:55:0, from Yun_wifi_led.ino:3: /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCClient.h:36:5: error: 'OSCEncoder::OSCEncoder' names the constructor, not the type OSCEncoder::OSCEncoder encoder; ^ In file included from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCServer.h:19:0, from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/ArdOSC.h:56, from Yun_wifi_led.ino:3: /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCDecoder.h:26:30: error: 'OSCMessage::OSCMessage' is not a type int16_t decode( OSCMessage::OSCMessage *_mes ,const uint8_t *_binData ); ^ In file included from /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/ArdOSC.h:56:0, from Yun_wifi_led.ino:3: /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCServer.h:31:5: error: 'OSCDecoder::OSCDecoder' names the constructor, not the type OSCDecoder::OSCDecoder _decoder; ^ /Users/Flashbacker/Documents/Arduino/libraries/ArdOSC/OSCCommon/OSCServer.h:32:5: error: 'Pattern::Pattern' names the constructor, not the type Pattern::Pattern _adrMatch; ^ Erreur lors de la compilation.

There is some errors with the including files

Try to add this to your sketch

#include <OSCCommon/OSCcommon.h>
#include <OSCCommon/OSCMessage.h>
#include <OSCCommon/OSCClient.h>
#include <OSCCommon/OSCServer.h>