View Single Post
  #3   Spotlight this post!  
Unread 12-18-2016, 09:29 PM
Robodragons4630 Robodragons4630 is offline
CHS Robodragons Programming
AKA: Noah Jarnigan
FRC #4630 (Robodragons)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Clinton, Tennessee
Posts: 15
Robodragons4630 is an unknown quantity at this point
Re: Robot(): is private error being thrown

Quote:
Originally Posted by euhlmann View Post
First, make sure you understand visibility. Here's a stackoverflow question I found: http://stackoverflow.com/questions/8...ed-inheritance
You simply need to make the constructor public
Code:
class Robot: public IterativeRobot
{
private:
    // some stuff

public:
    Robot() // etc
    // ...
}
I just tried that but it's still throwing the error. I think it's a glitch with eclipse because no matter how much i move around the code it always appears on line 24.
Reply With Quote