Log in

View Full Version : Multiples errors around the project


GavinL
02-01-2017, 04:49
Don't know how to explain this but in my drivetrain subsystem, the line

"class drivetrain: public Subsystem {" has the error "changes meaning of 'drivetrain' from 'class drivetrain' [-fpermissive]"

2nd error is in Robot.h, under public:.
static std::shared_ptr<drivetrain> drivetrain; has an error stating
"declaration of 'std::shared_ptr<dtivetrain> Robot::drivetrain [-fpermissive]"

3rd error is in Robot.cpp, under Robot::RobotInit()
drivetrain.reset(new drivetrain()); has an error on reset stating
the candidates are "void reset();, void reset(#10000 *), void reset(#10000 *, #10001), and void reset(#10000 *, #10001, #10002)"

send help ;-;

euhlmann
02-01-2017, 14:10
Could you please post your full project code?

GavinL
04-01-2017, 01:57
Could you please post your full project code?

It's auto-generated RobotBuilder code.

Joe Ross
04-01-2017, 02:25
Change your drivetrain subsystem name to Drivetrain. It can't differentiate between the class and instance.

AustinShalit
04-01-2017, 02:50
Opened an issue to validate for this.

https://github.com/wpilibsuite/RobotBuilder/issues/26

GavinL
04-01-2017, 09:48
Change your drivetrain subsystem name to Drivetrain. It can't differentiate between the class and instance.

ahhhh, I see. Thanks!