|
Re: Issues with a header file
A couple of things I noticed:
-- Try including the RobotClass.h header in MyRobot.cpp. The compiler often times needs the type definition to work off of. It can't hurt in any case.
-- Your class is called IterativeDefaultRobot in MyRobot.cpp, but IterativeRobotDefault in RobotClass.h (make sure to change your constructor name as well)
-- testspike has a lowercase s in MyRobot.cpp and an uppercase S in RobotClass.h
-- The issue that Pat pointed out is true, but also you're using a dereferencing operator (->) on an object instead of a member access operator (.). Looks like you actually want to declare them as pointers in your header, but then make sure to add a destructor in order to delete them.
Good luck,
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
|