View Single Post
  #1   Spotlight this post!  
Unread 13-02-2006, 17:37
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
linker error help

I am getting a: symbol 'FIRE_DELAYS' has multiple definitions

Now the problem is, FIRE_DELAYS is only refrenced two places in my code. they are:
Code:
------ fire_control.h -------
#ifndef __fire_control_h_
#define __fire_control_h_
...
const unsigned char FIRE_DELAYS[] =
	{75,	/*FIRING*/
 	 200,	/*RETRACTING*/
 	 500};	/*LOADING*/
...
#endif

------ fire control.c -------
#include "fire_control.h"

void FireControl(void){
	...
	if(i < FIRE_DELAYS[fireState -1]){
 	 	...
 	}
 	...
}
Am i just totally overlooking something really obvious, or is the linker behaving oddly.
__________________
1139 Alumni

Last edited by Rickertsen2 : 13-02-2006 at 17:39.