Pages: [1]   Go Down
Author Topic: Time.h compiling error  (Read 2225 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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://arduino.cc/forum/index.php?topic=50138.0
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.
« Last Edit: February 24, 2012, 10:04:57 pm by Coding Badly » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Solved!

I was keeping the library in project directory without  have copied it to libraries folder... smiley-eek-blue

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

Thank you all.

 smiley-sleep
Logged

Pages: [1]   Go Up
Jump to: