Mancato compilazione Sketch con ide 1.0 ma tutto ok con 0022

Provando a compilare un sketch mi da un sacco di errori tipo:

tencoder_a_stati_finiti.pde:-1: error: ‘pinMode’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘digitalWrite’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘canold_a’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘canold_b’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘millis’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘delay’ was not declared in this scope
tencoder_a_stati_finiti.cpp: In function ‘void loop()’:
tencoder_a_stati_finiti.pde:-1: error: ‘millis’ was not declared in this scope
tencoder_a_stati_finiti.cpp: In function ‘void Tempo(int, int, int)’:
tencoder_a_stati_finiti.pde:-1: error: ‘segno’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘segno’ was not declared in this scope
tencoder_a_stati_finiti.cpp: In function ‘void timer()’:
tencoder_a_stati_finiti.pde:-1: error: ‘can_a’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘digitalRead’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘can_b’ was not declared in this scope
tencoder_a_stati_finiti.pde:-1: error: ‘canold_a’ was not declared in this scop

Il programma e composto da lo sketch principale e due funzioni.
Ciao tecno

normale, l'ide UNO ha cambiato un sacco di cose e bisogneràè riscrivere quasi tutte le librerie.

Probabilmente il tuo problema si risolve includendo il file Arduino.h dalla libreria che stai usando nel tuo sketch.

inserendo in testa allo sketch
#include <Arduino.h>
moltissimi errori sono scomparsi ma sono rimasti altri che sembrano essere legati a librerie matematiche e gestione stringe.
Però non so centra il fatto che ho installato questa versione di liberia avr
" /usr/lib/gcc/avr/4.3.5/../../../avr/include/stdint.h:159: error: ‘int8_t’ does not name a type
/usr/lib/gcc/avr/4.3.5/../../../avr/include/stdint.h:213: error: ‘int8_t’ does not name a type"
perchè stò cercando di configurare netbeans.
Ciao Tecno, adesso spengo tutto.

Purtroppo il problema è questo qui:

lesto:
normale, l'ide UNO ha cambiato un sacco di cose e bisogneràè riscrivere quasi tutte le librerie.