View Single Post
  #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