Directory Errors
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Directory Errors

by singhm29 on Thu Dec 02, 2010 2:45 am

I have been trying to get my DS1307 RTC breakout board to run the test code supplied by the tutorial on this site to no avail.
( http://www.ladyada.net/learn/breakoutpl ... 07rtc.html )
After downloading the required library I put them in
C:\Users\Manmeer\Documents\Arduino\libraries\RTClib (hmm should libraries be a capital L?)
-in this folder I have DS1307.cpp and DS1307.h

like it states
"For the RTC library, we'll be using a fork of JeeLab's excellent RTC library RTClib - a library for getting and setting time from a DS1307 (originally written by JeeLab, our version is slightly different so please only use ours to make sure its compatible!) - download the .zip by clicking on Download Source (top right) and rename the uncompressed folder RTClib Then install it in your Arduino directory in a folder called RTClib"

& in the sketch
#include <Wire.h>
#include "RTClib.h"

Doing this throws me the error that
C:\Users\Manmeer\Documents\Arduino\libraries\RTClib\DS1307.cpp:6:20: error: RTClib.h: No such file or directory

Which ok fine maybe there was a typo on the tutorial ill rename the header file to RTClib instead of DS1307 along with the cpp file only to get this error:
testing.cpp:4:20: error: DS1307.h: No such file or directory
-testing is the name of the sketch which is located at
-i made the components folder and DS1307

WHY?! WHY am I getting these errors? Why is arduino giving me the run around =(
Posts: 49
Joined: Thu Dec 02, 2010 2:19 am

Re: Directory Errors

by adafruit_support_bill on Thu Dec 02, 2010 7:31 am

Are you sure you got the files from the link on the project page? https://github.com/adafruit/RTClib
I just checked it and the two files in the library are named RTCLib.cpp and RTCLib.h.

Posts: 76047
Joined: Sat Feb 07, 2009 10:11 am

Re: Directory Errors

by mtbf0 on Thu Dec 02, 2010 8:55 am

since arduino-0017 libraries should be installed in your sketchbook.
"i want to lead a dissipate existence, play scratchy records and enjoy my decline" - iggy pop, i need more
User avatar
Posts: 1645
Joined: Sat Nov 10, 2007 12:59 am
Location: oakland ca

Re: Directory Errors

by theenggprojects on Sun Oct 02, 2016 3:57 am


You should have a look at these Arduino Projects. In this list they have given a Project on DS1307 in which they have interfaced Arduino with RTC and have designed a digital Clock.


Posts: 14
Joined: Sun Feb 02, 2014 7:43 pm

Please be positive and constructive with your questions and comments.