Time.h compiling error

Hello to everybody,

I'm a newbie with arduino, so thank to everybody who can help me...

I'm trying to include the time.h library to my project but before to do that, I'd like to test the library alone and this is the point where I'm stuck;

Pratically, after the library download, I try to lunch the examples script, but the error I obtain during compiling is always the follow:

TimeSerial.cpp:12:20: error: Time.h: No such file or directory
TimeSerial.pde:-1: error: 'time_t' does not name a type
TimeSerial.cpp: In function 'void setup()':
TimeSerial.pde:-1: error: 'requestSync' was not declared in this scope
TimeSerial.pde:-1: error: 'setSyncProvider' was not declared in this scope
TimeSerial.cpp: In function 'void loop()':
TimeSerial.pde:-1: error: 'timeStatus' was not declared in this scope
TimeSerial.pde:-1: error: 'timeNotSet' was not declared in this scope
TimeSerial.pde:-1: error: 'timeSet' was not declared in this scope
TimeSerial.cpp: In function 'void digitalClockDisplay()':
TimeSerial.pde:-1: error: 'hour' was not declared in this scope
TimeSerial.pde:-1: error: 'minute' was not declared in this scope
TimeSerial.pde:-1: error: 'second' was not declared in this scope
TimeSerial.pde:-1: error: 'day' was not declared in this scope
TimeSerial.pde:-1: error: 'month' was not declared in this scope
TimeSerial.pde:-1: error: 'year' was not declared in this scope
TimeSerial.cpp: In function 'void processSyncMessage()':
TimeSerial.pde:-1: error: 'time_t' was not declared in this scope
TimeSerial.pde:-1: error: expected `;' before 'pctime'
TimeSerial.pde:-1: error: 'pctime' was not declared in this scope
TimeSerial.pde:-1: error: 'pctime' was not declared in this scope
TimeSerial.pde:-1: error: 'setTime' was not declared in this scope
TimeSerial.cpp: At global scope:
TimeSerial.pde:-1: error: 'time_t' does not name a type

Now, I checked out for similar topic and I found a couple of similar past problems at:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1262783962/135

But, while these users solved their troubles, I still can't find the solution...

any idea?

Thank you

Moderator edit: font changed.

Solved!

I was keeping the library in project directory without have copied it to libraries folder... :fearful:

One night spent to this banality, but it's ok...

Thank you all.

:sleeping:

Hi Dan 748

I am a complete newbie to arduino and I am having the same issue you had here, but I've made sure that the correct folder are in libraries. Could you tell me the steps you took to fix? Sorr if this is such a easy problem