Need Help with ERRORS !

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
garym77
 
Posts: 6
Joined: Sun Feb 05, 2012 6:34 pm

Need Help with ERRORS !

Post by garym77 »

I had a sketch that was working fine when loaded from my Mac Airbook. . . .BUT when I tried to move everything over to my Mac Pro ( Same OS )I get the following errors . . .

First I get " redefinition of "sdReader card"

Then


_9600_ADA2:235: error: redefinition of 'SdReader card'
_9600_ADA2:8: error: 'SdReader card' previously declared here
_9600_ADA2:236: error: redefinition of 'FatVolume vol'
_9600_ADA2:9: error: 'FatVolume vol' previously declared here
_9600_ADA2:237: error: redefinition of 'FatReader root'
_9600_ADA2:10: error: 'FatReader root' previously declared here
_9600_ADA2:238: error: redefinition of 'FatReader f'
_9600_ADA2:11: error: 'FatReader f' previously declared here
_9600_ADA2:240: error: redefinition of 'WaveHC wave'
_9600_ADA2:13: error: 'WaveHC wave' previously declared here
_9600_ADA2:244: error: redefinition of 'int audioState'
_9600_ADA2:17: error: 'int audioState' previously defined here
_9600_ADA2:247: error: redefinition of 'byte buttons []'
_9600_ADA2:20: error: 'byte buttons [6]' previously defined here
_9600_ADA2:251: error: redefinition of 'volatile byte pressed [6]'
_9600_ADA2:24: error: 'volatile byte pressed [6]' previously declared here
_9600_ADA2:251: error: redefinition of 'volatile byte justpressed [6]'
_9600_ADA2:24: error: 'volatile byte justpressed [6]' previously declared here
_9600_ADA2:251: error: redefinition of 'volatile byte justreleased [6]'
_9600_ADA2:24: error: 'volatile byte justreleased [6]' previously declared here
_9600_ADA2.cpp: In function 'int freeRam()':
_9600_ADA2:254: error: redefinition of 'int freeRam()'
_9600_ADA2:27: error: 'int freeRam()' previously defined here
_9600_ADA2.cpp: In function 'void sdErrorCheck()':
_9600_ADA2:268: error: redefinition of 'void sdErrorCheck()'
_9600_ADA2:41: error: 'void sdErrorCheck()' previously defined here
_9600_ADA2.cpp: In function 'void setup()':
_9600_ADA2:278: error: redefinition of 'void setup()'
_9600_ADA2:51: error: 'void setup()' previously defined here
_9600_ADA2.cpp: In function 'void __vector_9()':
_9600_ADA2:351: error: redefinition of 'void __vector_9()'
_9600_ADA2:124: error: 'void __vector_9()' previously defined here
_9600_ADA2.cpp: In function 'void check_switches()':
_9600_ADA2:355: error: redefinition of 'void check_switches()'
_9600_ADA2:128: error: 'void check_switches()' previously defined here
_9600_ADA2.cpp: In function 'void loop()':
_9600_ADA2:390: error: redefinition of 'void loop()'
_9600_ADA2:163: error: 'void loop()' previously defined here
_9600_ADA2.cpp: In function 'void playcomplete(char*)':
_9600_ADA2:427: error: redefinition of 'void playcomplete(char*)'
_9600_ADA2:200: error: 'void playcomplete(char*)' previously defined here
_9600_ADA2.cpp: In function 'void playfile(char*)':
_9600_ADA2:436: error: redefinition of 'void playfile(char*)'
_9600_ADA2:209: error: 'void playfile(char*)' previously defined here


Can anybody tell me what is going on here ?


Thanks

Gary

User avatar
adafruit_support_bill
 
Posts: 88092
Joined: Sat Feb 07, 2009 10:11 am

Re: Need Help with ERRORS !

Post by adafruit_support_bill »

I have seen similar errors when I had two copies of the program file in the same folder. Check your folder and see if there are any extra files.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”