Pages: 1 [2]   Go Down
Author Topic: SOLVED: Problem compiling code error: "undefined Reference to 'Timer1'"  (Read 6083 times)
0 Members and 1 Guest are viewing this topic.
Arizona
Offline Offline
Newbie
*
Karma: 0
Posts: 9
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it looks like v 1.0 helped, it complied but i didn't get the error (i cant type well) my English is quite proficient, but i hunt a peck.
Thanks
Logged

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

Paul, Quotes didnt help, i did use the add library tool from the IDE.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You shouldn't need to do this:

Code:
#include <..\libraries\TimerOne\TimerOne.h>

Instead:

Code:
#include <TimerOne.h>

Make sure you restarted the IDE after copying the files. Turn on verbose compiling and see if it found the header file.
Logged

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

OK when using CodeBlocks, I copied the PinChangeInt and TimerOne folders under my main program directory libraries folder, then I used the following lines and it finally compiled in CodeBlocks too.
Thanks Everyone for all your help!

Code:
#include <.\libraries\PinChangeInt\PinChangeInt.h>
#include <.\libraries\TimerOne\TimerOne.h>
Logged

Tasmania - Australia
Offline Offline
Sr. Member
****
Karma: 10
Posts: 299
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good to hear you were able to sort it out.
So it was just how you were point to its location that was the problem.

Good luck with the rest of your project, hope you have much fun from it.
Paul

Oh, PS you could mark it solved by modifying the thread title where you first posted.
« Last Edit: October 25, 2012, 10:52:55 pm by rockwallaby » Logged


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

Thanks again for all the help, this has been fun, I haven't programmed anything since Turbo Pascal about 23 years ago, lots to learn!
Logged

Tasmania - Australia
Offline Offline
Sr. Member
****
Karma: 10
Posts: 299
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Turbo Pascal, that is a blast from the past.
I wonder how many folk here know of that?

Well, hope you become happily addicted to Arduino and experiment with some new ideas.

Cheers,
Paul
Logged


Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wrote some pretty complex stuff in Turbo Pascal. Great development environment.

I've forgotten it all now. smiley-sad
Logged

Pages: 1 [2]   Go Up
Jump to: