View Single Post
  #1   Spotlight this post!  
Unread 08-02-2008, 16:40
bronxbomber92 bronxbomber92 is offline
Registered User
FRC #1551 (Grapes of Wrath)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Naples
Posts: 75
bronxbomber92 is an unknown quantity at this point
Multiple Definitions

I've created a new file, where I keep all of this years code. When I compile my project I get an error saying symbol 'ReleasingBall' has multiple definitions.

Here's how my files are organized:

custom_routines.h
Code:
#ifndef _CUSTOM_ROUTINES_H_
#define _CUSTOM_ROUTINES_H_

//...
bool ReleasingBall;
//...
#endif
custom_routines.c
Code:
#include <timer.h>
#include "custom_routines.h"

// function definitions
user_routines.h
Code:
//..
#include "custom_routines.h" 

// all of my custom code is commented out, so beside the above include directive, everything is in its original state
Why am I getting this error, the include guards should be preventing this problem!