I'm using an Arduino Uno with version 0022 of the software. It's installed on a Windows Vista SP2 machine and, up until this morning, everything has worked as expected. I'm new to the Arduino but am pretty experienced with PCs and software. (I write software for a living).
I've been trying to install some libraries for use on my board. This morning I installed the Tone library (from Google Code Archive - Long-term storage for Google Code Project Hosting.) without any problems. I copied this into the C:\Users\MyUserName\Documents\arduino-0022\arduino-0022\libraries folder on my machine. The Tone library appeared in the Import Library list as expected and loaded correctly when selected.
Later I tried to install the TimeDate library from Arduino Playground - Time (again by copying to the C:\Users\MyUserName\Documents\arduino-0022\arduino-0022\libraries folder on my machine).
This would not appear in the Import Library list and compiling fails with a selection of error messages!
Now neither the TimeDate nor the Tone libraries appear in the Import Library list. (Odd that the Tone library should disappear when I haven't removed it).
To add to my question above I've just tried adding (any) one of the inbuilt libraries and got the following error:
core.a(main.cpp.o): In function main': D:\Software\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:7: undefined reference to setup'
D:\Software\Arduino\arduino-0022\hardware\arduino\cores\arduino/main.cpp:10: undefined reference to `loop'
I'm just about to try installing and reinstalling the software (just in case!)
You should have just installed it in sketchbook/libraries/ - libraries that are built into the Arduino software itself are compiled differently I believe.
In general putting code into the Arduino distribution means you'll lose it when you next upgrade!
Are you sure you are placing the libraries in the correct place and format?
Here is how my contributed library looks like, note that this library directory is located in the arduino sketch folder not anywhere in the arduino core structure.
C:\Documents and Settings\Primary Windows User\My Documents\Arduino\libraries
C:\Documents and Settings\Primary Windows User\My Documents\Arduino\libraries\Tone
2 Folders:
examples
Tone
3 Files:
keywords.txt
Tone.cpp
Tone.h
See if your folder structure is similar. You will know you have it correct when you can in the IDE click on sketch/import Library and see the library listed in the lower 'contributed' section of the listing shown.
Firstly, my Vista machine maps the path to C:\Users[Username]\Documents\Arduino\Libraries
Having said that, something strange has happened. When I started up my machine today and opened the IDE the libraries were visable and worked perfectly.
Nothing has been added, removed or changed since I shut down the machine last night when the libraries weren't working.
As I may have said above, I work as a software developer and am no stranger to weird things happening with Windows machine configurations so I'm writing this off as a Windows quirk.
If I figure out what happened then I'll post again so others can benefit.
I struggle with this also. I have my IDE at c:/program files/arduino-0021.
When I download stuff, windows vista keeps putting it in some virtual storage folder, and makes it difficult to get it in the program files/arduino area.
freakin' windows ... I really miss the older versions before it was assumed we were all idiots and needed to be spoon fed everything.