View Single Post
  #1   Spotlight this post!  
Unread 11-01-2015, 14:47
vps vps is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2011
Location: United States
Posts: 30
vps is an unknown quantity at this point
Problem calling START_ROBOT_CLASS(_CLASSNAME_) Wrapper

I'm having trouble calling my wrapper - it hasn't happened before. Here's the code that has been reduced to purely illustrate the problem.


Code:
//Atlas.h
#include "WPILib.h"

class Atlas: public SampleRobot {
	Gyro* gyro;				//just some filler here
public:
	Atlas();
	~Atlas();
	void Autonomous();
	void OperatorControl();
	void Test();
};
Code:
//Atlas.cpp
#include "Atlas.h"

Atlas::Atlas() {
	gyro = new Gyro(1);
}
Atlas::~Atlas() {
	delete gyro;
}

void Atlas::Autonomous() { }
void Atlas::OperatorControl() { }
void Atlas::Test() { }
Code:
//initialize.cpp
#include "Atlas.h"
START_ROBOT_CLASS(Atlas);    //error here
The error is:
Quote:
Invalid arguments '
Candidates are:
? HALReport(?, ?, ?, const char *)
'

help?

Last edited by vps : 11-01-2015 at 14:54.