I'm getting some multiple definition errors when I compile and I can't figure out what I'm doing wrong.
Here's the errors I'm getting:
LocalLibrary.cpp.o: In function HotTubControl': LocalLibrary.cpp:6: multiple definition of
oneWire'
Hot_Tub_Main.cpp.o:(.bss.oneWire+0x0): first defined here
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld: Disabling relaxation: it will not work with multiple definitions
LocalLibrary.cpp.o: In function HotTubControl': LocalLibrary.cpp:6: multiple definition of
oneWireBus'
Hot_Tub_Main.cpp.o:(.bss.oneWireBus+0x0): first defined here
The code is located in GitHub:
I had this working, but I put some of the functions into a class in separate .cpp file and now I get these errors.