Arduino Tone Library compiling errors

Any idea what cause these errors?

https://code.google.com/p/rogue-code/wiki/ToneLibraryDocumentation

arduino-1.0.4\libraries\Tone\Tone.cpp: In member function 'void Tone::begin(uint8_t)':
arduino-1.0.4\libraries\Tone\Tone.cpp:121: error: 'bitWrite' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp:123: error: 'digitalPinToPort' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp:123: error: 'portOutputRegister' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp:124: error: 'digitalPinToBitMask' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp: In member function 'void Tone::play(uint16_t, uint32_t)':
arduino-1.0.4\libraries\Tone\Tone.cpp:198: error: 'OUTPUT' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp:198: error: 'pinMode' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp:294: error: 'bitWrite' was not declared in this scope
arduino-1.0.4\libraries\Tone\Tone.cpp: In member function 'void Tone::stop()':
arduino-1.0.4\libraries\Tone\Tone.cpp:361: error: 'digitalWrite' was not declared in this scope

#include <Tone.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(8,9,10,11,12,13);

int sec=0;
int minu=0;
int hr=0;
unsigned long pstimer=0;

int pbutton3=1;
int pbutton5=1;
int count=0;

Tone morse;

void setup(){

lcd.begin(16,2);  
morse.begin(7);

pinMode (A3, INPUT_PULLUP); 
pinMode (A5, INPUT_PULLUP);   
}

void loop(){
  
  
int button3= digitalRead(A3);

if(button3!=pbutton3){
  if(button3==0){
    minu++;
  }
  pbutton3=button3;
}

int button5= digitalRead(A5);
if(button5!=pbutton5){
  if(button5==0){
    hr++;
  }
  pbutton5=button5;  
}  
  
unsigned long timer= millis();

 if(timer-pstimer > 1000){
   sec++;
   pstimer = timer;   
   count++;
 }    

if(count==3){
morse.play (1000,500);
}

if(count==6){
count=0;
morse.play (500,500);
}

 
if(sec==60){
 sec=0; 
 minu++;
}

if(minu==60){
 minu=0;
 hr++;
}  
 


char szTime[16];
sprintf( szTime, "Time:%02d:%02d:%02d", hr, minu, sec );
lcd.setCursor(0,1);
lcd.print( szTime ); 

lcd.setCursor(0,0);
lcd.print( "Morse Code Clock" ); 

}

Nothing has been done to that library for three years or more, or so it seems.

There is no

#include <Arduino.h>

at the top of the Tone.cpp file. Try adding it. It seems this is a library for a version of Arduino that was in use before arks were cutting edge technology.

majenko:
Nothing has been done to that library for three years or more, or so it seems.

There is no

#include <Arduino.h>

at the top of the Tone.cpp file. Try adding it. It seems this is a library for a version of Arduino that was in use before arks were cutting edge technology.

thanks