Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Multiples errors around the project (http://www.chiefdelphi.com/forums/showthread.php?t=152905)

GavinL 02-01-2017 04:49

Multiples errors around the project
 
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

Re: Multiples errors around the project
 
Could you please post your full project code?

GavinL 04-01-2017 01:57

Re: Multiples errors around the project
 
1 Attachment(s)
Quote:

Originally Posted by euhlmann (Post 1624474)
Could you please post your full project code?

It's auto-generated RobotBuilder code.

Joe Ross 04-01-2017 02:25

Re: Multiples errors around the project
 
Change your drivetrain subsystem name to Drivetrain. It can't differentiate between the class and instance.

AustinShalit 04-01-2017 02:50

Re: Multiples errors around the project
 
Opened an issue to validate for this.

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

GavinL 04-01-2017 09:48

Re: Multiples errors around the project
 
Quote:

Originally Posted by Joe Ross (Post 1624907)
Change your drivetrain subsystem name to Drivetrain. It can't differentiate between the class and instance.

ahhhh, I see. Thanks!


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

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