Go to Post Don’t choose to aim for the stars because they mark the peak of our abilities, don’t choose to aim for the stars because it is easy, choose to aim for the stars because it shows the depth of our potential; choose to aim for the stars because it is hard! - Ken Leung [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
  #4   Spotlight this post!  
Unread 26-01-2009, 18:46
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

RoboDefs is shielded like you posted

Code:
#ifndef RANDOM_VALUE_YOU_WONT_USE
#define RANDOM_VALUE_YOU_WONT_USE
...Code...
#endif
I have other files importing RoboDefs.h multiple times, and it works fine.
I will post my whole project (zipped) if needed

EDIT: Show I protect my .cpp files too

Last edited by Mr.Macdonald : 26-01-2009 at 18:52.
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