noob can't add library

i'm fairly new to this and wanted to add a library for what i was doing, so i followed the instructions here (Arduino Playground - Timer1) adding the extracted folder i downloaded to a library folder i made in the sketch folder, and it showed up as an option in the add library. i clicked on it and it added the appropriate headder, but when i compiled the example, it gave me this message

C:\Users\Jon\Documents\Arduino\libraries\Timer1\TimerOne.cpp:39:29: error: TimerOneTesting.h: No such file or directory

it continued on for a while, but it just said a bunch of stuff wasn't declared or something was expected, so it looks like it's not loading the file, but i checked the path and spelling of everything, so i don't know why it's not working. im using win7 64 with an uno

1 Like

hi;

Here an example of my system : D:\Arduino_Uno\libraries\Time In Time directory, it include : Time.cpp , Time.h and Examples directory. So make sure TimerOne.cpp and TimerOneTesting.h are in the same directory ( ie: Timer1 directory )

In my system, the inside of my libraries include lots of directory of the others libraries, so just keep the same standard.

Understand ? I hope this help.

The download of the library has a bug in it. I get the same error.

Open up the TimerOne.cpp file and change the line:

#include "TimerOneTesting.h" //to
#include "TimerOne.h"

Edit: Fixed the file name that needs to be changed.

@James C45

Sorry to mis-understood th OP, so to my understanding, the OP has on of those mis-match h file, I wonder if the cpp file has the same problem ... a mis-match bug.

Techone:
Sorry to mis-understood th OP, so to my understanding, the OP has on of those mis-match h file, I wonder if the cpp file has the same problem ... a mis-match bug.

Oops, I made a mistake. I meant to say edit "TimerOne.cpp". I'm going to edit the original post to reduce confusion.

can i open and edit the cpp file in the arduino ide? if so, how?

theshiznojudge:
can i open and edit the cpp file in the arduino ide? if so, how?

I would just use Notepad or whatever Text editor you wish to use and make the change directly.

Or I guess if you aren't comfortable making a small change, attached is the file with correction.

TimerOne.cpp (7.88 KB)