1.8,1 vs 1.8.3 TimeAlarms.h

Interesting difference between 1.8.1 and 1.8.3.
Fresh install of 1.8.3.

Simple program:

#include <Time.h>
#include <TimeAlarms.h>
void setup() {
// put your setup code here, to run once:


void loop() {
// put your main code here, to run repeatedly:


1.8.1 finds the TimeAlarms.h file
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++”
-c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections
-fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10801
“-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino”
“-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs”
“-IC:\Program Files (x86)\Arduino\libraries\TimeAlarms-master”
“C:\Users\760\AppData\Local\Temp\arduino_build_638900\sketch\Test_Time_100.ino.cpp” -o “nul”

1.8.3 does not.
C:\Users\760\Documents\Arduino\Test_Time_100\Test_Time_100.ino:4:24: fatal error:
TimeAlarms.h: No such file or directory

#include <TimeAlarms.h>
compilation terminated.

Where is the file to set library locations?

David Vukovic
Houston Texas

It's because you installed the library to the wrong place. You should never install libraries to the Arduino IDE installation folder, specifically for this reason. Instead you should install them to the libraries subfolder of your sketchbook folder. You can find the location of the sketchbook folder at File > Preferences > Sketchbook Location.

Thanks for the response.

Seems 1.8.1 is a lot more forgiving on where libraries are placed.
TimeAlarms.h was not located in the preferences directory but 1.8.1 still found it.

1.8.3 seems to require libraries to be where the preferences says where they are to be.
Once all libraries were moved under preferences directory everything works.

No, that's not it.

If you used the "Windows Installer" download to install 1.8.3 then the library was erased from the 1.8.1 installation folder.

If you used the "Windows ZIP file for non admin install" download then you had a different IDE installation folder for 1.8.3 that did not contain the library that was installed in the 1.8.1 installation folder.