Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   CommandBase not recognizing a subsystem's type (http://www.chiefdelphi.com/forums/showthread.php?t=111529)

Iaquinto.Joe 18-01-2013 13:41

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.


All times are GMT -5. The time now is 18:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi