'DriveCommand' has not been declared

So to start off, I’m new to c++ and not familiar with any concept of it. If there is anything that I’m missing in this post, please let me know.

I have a command called ‘DriveCommand’ for the subsystem ‘DriveTrain’. I’m trying to get the robot to drive with arcade drive and I used RobotBuilder to start off, but for some reason the command that RobotBuilder gave is not working.

void DriveCommand::Initialize() {


This is just one of the commands where it gives the error, ‘DriveCommand’ has not been declared. I’m not sure exactly how to fix this.

I’m sorry if the information I’ve given is not enough. Thank you!

You might want to take this over to the Programming / C++ forum.

Good luck,