View Single Post
  #9   Spotlight this post!  
Unread 27-01-2009, 10:33
Mr.Macdonald Mr.Macdonald is offline
Registered User
FRC #2272
 
Join Date: Jan 2009
Location: Conejo Valley Robotics
Posts: 26
Mr.Macdonald is an unknown quantity at this point
Re: multiple definition Problem

Quote:
The problem is that you have the following line in your RoboDefs.h

START_ROBOT_CLASS(Main);

This is a macro defined in RobotBase.h (for reference).

This macro should only be in your Main.cpp file, and at the bottom works.

Peter Rivera
Mentor, Team 662.
Did you get it to compile, I can't test now but that makes sense. but why couldn't I put it at the end to the Main.h?

EDIT: But inside the macro shields
Reply With Quote