why 'not declared'?

Hi there,

i'm wondering why is it that whenever i try to upload just a simple blink program into arduino i get this error?

BlinkWithoutDelay.cpp:26:22: error: WProgram.h: No such file or directory
BlinkWithoutDelay:28: error: 'LOW' was not declared in this scope
BlinkWithoutDelay.cpp: In function 'void setup()':
BlinkWithoutDelay:37: error: 'OUTPUT' was not declared in this scope
BlinkWithoutDelay:37: error: 'pinMode' was not declared in this scope
BlinkWithoutDelay.cpp: In function 'void loop()':
BlinkWithoutDelay:48: error: 'millis' was not declared in this scope
BlinkWithoutDelay:55: error: 'LOW' was not declared in this scope
BlinkWithoutDelay:56: error: 'HIGH' was not declared in this scope
BlinkWithoutDelay:61: error: 'digitalWrite' was not declared in this scope

this is not the first time i'm using arduino. i've haven't used it for a while now. it seems like the only solution is to install arduino again and it work again. can someone explain what has gone wrong and how can i avoid further problems if i don't use it for a while?

thanks

dennis

Have you selected the right arduino board from the tools menu?

yes i have. i'm using Duemilanove 328 board and selected ATMega 328 and ttyserial.

Then it sounds like some of your files are missing from the installation. Specifically the WProgram.h

hi i've installed the arduino again. how do i avoid the problem that this file get lost?

hmmm i'm on a mac, where can i find out where things are? especially in arduino where it's only copying the app on the hd.

well the other way is to install arduino again when trouble pops up.

no i've not been missing files.

thanks

dennis

Most people here appear to be MS Windows and Linux.

This is what I would call a "baseless claim." There are a number of Mac users on here. Including most of the Arduino development team.

mmm i'm on a mac, where can i find out where things are?

The Arduino application (like all mac-applications) is actually an Application Bundle. Right-click on the Arduino icon and select "Show Package Contents". Navigate to Contents/Resources/Java. This is the root of where most files for the Arduino package can be found. If you continue to hardware/arduino/cores/arduino/ you'll find files like WProgram.h.

Unfortunately, Spotlight doesn't archive the individual contents of an Application Bundle, so it makes searching a little more difficult. (However, if you turn on the locate database in the terminal, you can use the "locate" command...)

hi,

so WProgram.h is 'THE' file. ok. I'll keep track of it. thanks. i'll write more when this problem arises tomorrow again. or if i find out what's causing this

best

dennis