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?
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...)
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