Can anyone help me with this Tone error message?

Can anyone help me with this Tone error message? I have no idea what it means.

Arduino: 1.8.1 (Mac OS X), Board: “Arduino/Genuino Uno”

libraries/ToneLibrary/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function timer0_pin_port': (.text+0x0): multiple definition of timer2_toggle_count’
libraries/ToneLibrary/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
Tone.cpp.o (symbol from plugin): In function timer0_pin_port': (.text+0x0): multiple definition of __vector_7’
libraries/ToneLibrary/Tone.cpp.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino/Genuino Uno.

I have no idea what it means.

and we have no idea what you code is.

Do the error messages really have smileys in them or did you fail to read this before posting a programming question

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Thanks.. Tom... :slight_smile:

ChargerCop:
Can anyone help me with this Tone error message? I have no idea what it means.

Arduino: 1.8.1 (Mac OS X), Board: "Arduino/Genuino Uno"

It means: You are using MAC OS X and Arduino IDE version 1.8.1 while the board setting in the IDE is "Arduino/Genuino Uno", but it does NOT tell about the code you are trying to compile, actually.

Is it one of the tone() example programs?

If you want to know more: POST YOUR sketch CODE (included in code tags as Tom already told you)!

Sorry…please forgive me…like i said…I’m new to this

here is the code

had to put it as an attachment because the forum kept telling me I was over the 9000 character limit.

Control_Points.ino (13 KB)

It compiles OK for me.

Win 7
IDE 1.5.6-r2
Arduino Uno

ChargerCop:
Sorry…please forgive me…like i said…I’m new to this

here is the code

had to put it as an attachment because the forum kept telling me I was over the 9000 character limit.

Itried to compile and got the following error (IDE 1.8.1, Windows-7

sketch_feb02a.ino:4:18: fatal error: Tone.h: No such file or directory

#include <Tone.h>

Did you install an extra Tone.h library?

Using the Arduino built-in tone() function is not enough for you?

In case you want to #include extra libraries, you first have to have them installed correctly, before you can compile code using functions from that library successfully.

Most likely, you messed it up installing the extra library correctly.

Well that might be the problem. I'm running on 1.8.1. Could that be the problem? And if so, is there a way to run this sketch on the 1.8.1

I use this library in another sketch, and it works just fine.

ChargerCop:
I use this library in another sketch, and it works just fine.

You write "this library". WHICH is it? Any reference to it, besides of the name of the include file "Tone.h"?

ChargerCop:
I use this library in another sketch, and it works just fine.

Apparently you are using the Tone class from ToneLibrary* in that sketch .
You are not using the library in this sketch.
Remove #include <Tone.h>.

You can either use the built-in tone() function or the Tone class, but not both.

Oh....so simple!. Perfect! Thank you so much. That worked!