Normally the START_ROBOT_CLASS(Robot) statement should sit outside the main class normally in Robot.cpp. It should be located outside of any defined method:
Code:
#include "WPILib.h"
#include "Robot.h"
OI * Robot::oi = NULL;
DriveBase * Robot::drivebase = NULL;
void Robot::RobotInit(){
oi = new OI();
drivebase = new DriveBase();
}
START_ROBOT_CLASS(Robot);
It would be great if you post your code that you are having a problem with.
See ya in the bitstream