AnsweredAssumed Answered

Linkage Conflict - variable redefinition - CW 6.3

Question asked by Joe Kissell on May 23, 2011
Latest reply on May 24, 2011 by Joe Kissell

I'm getting the following when I compile:

Warning : external/internal linkage conflict with previous declaration
HARDWARE.c line 52   static unsigned char digitalInput1TimerEnable = FALSE;

 I have a file named HARDWARE.c that contains this line of code:

static unsigned char digitalInput1TimerEnable = FALSE;

and also a HARDWARE.h header file that contains this line of code:

extern unsigned char digitalInput1TimerEnable;

 This variable is not defined anywhere else in my code. Why would I be getting this warning?

Outcomes