Go Down

Topic: Sketches with #include <Time.h> do not compile (Read 12623 times) previous topic - next topic


Hi all,

I have a problem that I just cannot solve and any help would be appreciated.... I searched the old forums but did not find anything similar to my situation.

I downloaded the Time Library from the Playground and just cannot get any sketches using the library to compile. I followed the installation instuctions and the libraries are installed in

When I verify one of the example sketches, the compile process runs for a few seconds and terminate with "Error compiling".
The same thing happens if I just take a simple sketch such as "Blink.pde" and include the time library as  #include <Time.h>

I tried putting the files

in any other directory then the compile just fails with an error such as
"TimeSerial.cpp:12:20: error: Time.h: No such file or directory
TimeSerial:16: error: 'time_t' does not name a type
TimeSerial.cpp: In function 'void setup()':"

So it appears that the Time library is where arduino IDE expects it to be.

The problem is that the compile fail even with just a simple #include <Time.h>
So Time.h itself must be problematic??

Any suggestions, ideas?
How can I get the IDE to be more verbose when compiling instead of just saying "Error compiling"?

Running Windows 7 and Arduino0022




Found the problem!!!

Iolo System Mechanics' System Guard was preventing the sketches from compiling. Not sure why only sketches with the time.h library is a problem but a workaround was found and that's all that matters for now.

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