They're constructed under the Robot class definition, right?
Code:
class Robot: public IterativeRobot
{
RobotDrive myRobot;
Joystick stick; //Aren't they declared here...
Joystick stick2;
DoubleSolenoid solenoid1;
DoubleSolenoid solenoid2;
Solenoid shooter_piston;
Solenoid claw;
Relay shooter_motors;
Relay arm_rotator;
LiveWindow* lw;
int autoloopcounter;
const int button2 = 2;
const int button3 = 3;
const int button4 = 4;
const int button5 = 5;
public:
Robot() :
myRobot(0,1,2,3)
stick(0), //and initialized here?
stick2(1),
solenoid1(1, 2),
solenoid2(3, 4),
shooter_piston(5),
claw(6),
shooter_motors(0),
arm_rotator(1),
lw(LiveWindow::GetInstance()),
autoloopcounter(0)