Go to Post That's wicked sweet (and I'm not even from New England). - Travis Hoffman [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Definition of orthogonal.... fhobart General Forum 9 08-01-2009 12:38
[FTC]: Multiple Programs or One Program with Multiple Auto Modes kevin51292 FIRST Tech Challenge 4 02-01-2009 20:37
definition of FUNCPTR shavol Programming 6 28-12-2008 19:00
Hosting multiple sites in multiple VMs EHaskins Website Design/Showcase 6 22-12-2007 01:09
multiple definition error in MCC/Linker (possible bug?) wun Programming 5 01-04-2004 17:49


All times are GMT -5. The time now is 03:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi