Go Down

Topic: Installing and running Arduino 1.0 (Read 1 time) previous topic - next topic


Currently I am using Arduino 022. I downloaded the 1.0 version and unzipped it. When I try to compile the Blink program it says "Blink.cpp:8:21: error: Arduino.h: No such file or directory". Can 1.00 and 22 co-exist?
Any help will be appreciated.


If they're properly unzipped to different folders.
• Upload doesn't work? Do a loop-back test.
• There's absolutely NO excuse for not having an ISP!
• Your AVR needs a brain surgery? Use the online FUSE calculator.
My projects: RGB LED matrix, RGB LED ring, various ATtiny gadgets...
• Microsoft is not the answer. It is the question, and the answer is NO!


I unzipped it properly, and installed it properly.
It gets the same message.
Arduino.h is available in the Hardware folder.
How do you fix this problem?


Found the problem.
You have to change Preferences in the File tab to show the new folder.


[..] to show the new folder.
What does that mean?
Sketches folder? O_o
Arduino Uno (R2fix) / Duemilanove (328p)
Ethernet Shield SD (v5)


I think this is the easiest way to solve the problem:

To update old cores (such as Sanguino)
Code: [Select]
echo "#include \"WProgram.h\"" > hardware/Sanguino/cores/arduino/Arduino.h

To compile old programs on new cores (>=1.0)
Code: [Select]
echo "#include \"Arduino.h\"" > hardware/arduino/cores/arduino/WProgram.h

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131