View Single Post
  #3   Spotlight this post!  
Unread 26-06-2009, 04:09
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
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
Reply With Quote