|
CommandBase not recognizing a subsystem's type
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
Code:
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.
__________________
4 year 2011 - 2014 FRC team 308 member, Lead Programmer - C++ / LabVIEW
3 year 2011, 2013, 2014 OCCRA member, Co-Captain OCCRA team 308 - OCCRA Engineering Excellence - Waterford Kettering 2013
- Innovation in Control - 2011
- Quality award- Northville 2012
- Engineering Excellence- Howell 2014
- Innovation in Controls- Livonia 2014
Last edited by Iaquinto.Joe : 18-01-2013 at 17:16.
Reason: Fixed my issue.
|