|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Robot(): is private error being thrown
My code is throwing the error "Description Resource Path Location Type
'Robot::Robot()' is private Robot.cpp /ittest/src line 24 C/C++ Problem" and i have absolutely no idea where to start in fixing it. Here's my code. http://pastebin.com/N7kJ7454 |
|
#2
|
||||
|
||||
|
Re: Robot(): is private error being thrown
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
// ...
}
|
|
#3
|
|||
|
|||
|
Re: Robot(): is private error being thrown
Quote:
|
|
#4
|
|||
|
|||
|
Re: Robot(): is private error being thrown
Try saving your code before re-building.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|