PID Basic when compile get error message

Hi, when i compile PID Basic exampleget error message like below:

Arduino: 1.5.6-r2 (Windows XP), Board: “Arduino Uno”

C:\Documents and Settings\icareuz\My Documents\Arduino\libraries\PID_v1\PID_v1.cpp: In constructor ‘PID::PID(double*, double*, double*, double, double, double, int)’:
C:\Documents and Settings\icareuz\My Documents\Arduino\libraries\PID_v1\PID_v1.cpp:26: error: ‘millis’ was not declared in this scope
C:\Documents and Settings\icareuz\My Documents\Arduino\libraries\PID_v1\PID_v1.cpp: In member function ‘void PID::Compute()’:
C:\Documents and Settings\icareuz\My Documents\Arduino\libraries\PID_v1\PID_v1.cpp:43: error: ‘millis’ was not declared in this scope

this is the coding:
/********************************************************

  • PID Basic Example
  • Reading analog input 0 to control analog PWM output 3
    ********************************************************/
    #include “Arduino.h”
    #include <PID_v1.h>

//Define Variables we’ll be connecting to
double Setpoint, Input, Output;

//Specify the links and initial tuning parameters
PID myPID(&Input, &Output, &Setpoint,2,5,1, DIRECT);

void setup()
{
//initialize the variables we’re linked to
Input = analogRead(0);
Setpoint = 100;

//turn the PID on
myPID.SetMode(AUTOMATIC);
}

void loop()
{
Input = analogRead(0);
myPID.Compute();
analogWrite(3,Output);
}


i already try:
-i try using PID_v1 or PID_v1.0.1 library also get this error message.
-i put my library inside Arduino\libraries\PID_v1\

  • i also try the step from forum Arduno before, still cant slove this problem

who can give me some idea to slove this error message? thanks.

You need to post the code you are trying to compile and post a link to the libaries you are trying to use. Then we can compile it and see what the problem is.
All we can say at the moment is that there is something wrong with that libary file.

this library i use:
https://github.com/br3ttb/Arduino-PID-Library/zipball/master

who can send me the link complete library and sketch file is can compile and function?

The examples compile fine for me for a UNO in IDE 1.0.5. What processor are you trying to compile it for?

lkt321:
who can send me the link complete library and sketch file is can compile and function?

I should get yourself a better translator, one that can actually produce sense as well as words.