Trouble with RobotBase.h file

Our team is new to C++ this year, so we may be missing something obvious, but our mentor is out of town for the week and we’re stumped.

When we run our code, it comes up with this error:
RobotBase.h:100:46: error: expected ‘}’ at end of input
int main() { return StartRobotClassImpl(); }

We’ve looked in RobotBase for any missing brackets, but couldn’t find any, and RobotBase from WPILib (https://first.wpi.edu/FRC/roborio/release/docs/cpp/RobotBase_8h_source.html) is the same code. Any ideas what could be wrong? All help and tips are very appreciated!

can you put a link to your code? hard to see the problem without the whole thing

1 Like