Hi,
I am confused about an error that I do not recall experiencing in the past with other compilers.
The problem is that when I define a variable outside of any functions in one source file and then define a variable with the same name outside of any functions in an other file I get a link error:
error #10056: symbol "g_bErrFlag" redefined: first defined in "./CanRxHandler.obj"; redefined in "./CanTxHandler.obj"
The two variables are defined in two different files and they are not referred to in the other file with extern so this, in my opinion, should not confuse the linker.
The definition in question is:
volatile bool g_bErrFlag = 0;
Any pointer would be appreciated.
BR