[Error]Getting data from NunChuck

hey guys, i'm trying to take the reading from a Wii Nunchuck joystick. I made a poor code, but i'm using the library in the Arduino 1.0, however i'm taking the same error everytime, and it says that Wire is not declared. Wire is declared into the nunchuck_funcs library, the only time that Wire is used is into the library, not in my code.

Here is the code

#include <Wire.h>
#include <nunchuck_funcs.h>
#include <Servo.h>

int accx,accy,x,y,zbut,cbut;
int ledPin = 13;

void setup()
{
 
  Serial.begin(19200);
  nunchuck_setpowerpins();
  nunchuck_init(); // send the initilization handshake
    
    Serial.print("WiiChuckDemo ready\n");
}

void loop()
{
  
  nunchuck_get_data();
  
  nunchuck_print_data();
  
  accx = nunchuck_joyx();
  
  accy = nunchuck_joyy();
  
  zbut = nunchuck_zbutton();
  
  cbut = nunchuck_cbutton(); 
  
  
delay (5);
  
  
}

Odd because the error message I get is

ibraries/nunchuck_funcs/nunchuck_funcs.h:13:22: error: WProgram.h: No such file or directory

This means that the nunchuck_funcs.h file is not compatible with the arduion 1.0 IDE is is only compatible with the earlier 0023 version.
Add this to the file in place of the call to include WProgram.h

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
  #else
  #include "WProgram.h"
  #endif

If you can't get that code to work, try the following, which I've been using
with IDE 2.0.

http://www.windmeadow.com/node/42

Also, be sure to use the Nunchuck with Vdd = 3.3V, and not 5V, and
also ideally 3.3V control signals.

which I've been using with IDE 2.0.

Where did you get that then? It is only 1.0 on the download page.