Log in

View Full Version : CommandBase not recognizing a subsystem's type


Iaquinto.Joe
18-01-2013, 13:41
Our team is using the CommandBasedRobotTemplate and when we try to create the static declaration of a subsystem in Command Base we get an error that states


C:/WindRiver/workspace/CommandBasedRobotTemplate/Subsystems/../Commands/../CommandBase.h:23: error: ISO C++ forbids declaration of `Drivetrain' with no type
C:/WindRiver/workspace/CommandBasedRobotTemplate/Subsystems/../Commands/../CommandBase.h:23: error: expected `;' before '*' token


The way to fix the issue involves forward declaring the class if you include commandbase.h in your subsystem.