@nick i have tried your program and has worked brillantly. hi-five; but still cant understand why the above error is occuring; also nice to find a solution.
Glad to hear it worked. I have stuck with that procedure because it worked first time and it also leads to slightly smaller programmes.
I guess you were just having a simple library positioning problem. There seems to be a few theories on what that might be - which I think are nonsense. All my libraries, whether they be out-of-the -box or third party, are exactly where you would expect them to be - which is in a folder called “E:\Arduino\libraries”. Further, the safest place to park a new library must surely be beside an original library that you have already used.
I submit that all this has nothing to do with where your programmes are stored which, in my case, went to E:\MyDocuments\Arduino by default, but this can subsequently be changed at any time by hitting CTRL+comma when in the IDE, and putting them wherever you like - and without incurring obligation about where the libraries go.
As Johnwasser suggests, a clean install of V1.6 is a good idea. I believe it starts faster!
Keep on clockin’