AVRProjectIDE with version of Arduino 1.0

Did you include Arduino.h like the Arduinbo IDE does?