SPI library

Hey, I'm having a problem with the preinstalled SPI library, anyone willing to help someone who's not that good at programming? I run the digitalPotcontrol.ino and .pde files in the IDE (1.0), and I get these errors:
DigitalPotControl:105: error: redefinition of 'const int slaveSelectPin'
DigitalPotControl:34: error: 'const int slaveSelectPin' previously defined here
DigitalPotControl.cpp: In function 'void setup()':
DigitalPotControl:107: error: redefinition of 'void setup()'
DigitalPotControl:36: error: 'void setup()' previously defined here
DigitalPotControl.cpp: In function 'void loop()':
DigitalPotControl:114: error: redefinition of 'void loop()'
DigitalPotControl:43: error: 'void loop()' previously defined here
DigitalPotControl.cpp: In function 'int digitalPotWrite(int, int)':
DigitalPotControl:133: error: redefinition of 'int digitalPotWrite(int, int)'
DigitalPotControl:62: error: 'int digitalPotWrite(int, int)' previously defined here

Thanks to any and all that can help, and God bless. Andrew Clark

Why are you loading a pde file in 1.0? Why are you loading two files with the same name, but different extensions in any version of the IDE?

The only reason I can think of is because they get loaded into the IDE at the same time, b/c they are in the same folder, but i can try taking the pde out and just running the ino