NevemTeve gave you the solution. That may be all you need, especially for just this time.
I will try to give you the answer, so you won't be confused over this next time.
Quote:
Originally Posted by yaplej
There are 0 external global variables defined.
|
That is apparently incorrect. I expect you mean you didn't use the keyword extern. But a global variable is defined every time you define a variable at module scope without the keyword static.
Quote:
However I just created two modules that shared a variable name for internal use.
|
Your intent may have been internal use, but you defined each of those variables for global use.
Quote:
This caused some serious problems though with my logic. I was under the assumption that the variables are isolated from each other.
|
Variables of the same name defined at function scope are isolated by scope. The lack of "static" at function scope does not make a variable global. (It makes a variable "automatic" meaning it acts as if it were created on entry to its scope and destroyed on exit, so its value is likely lost when exiting the scope and reentering it later.)
Variables defined at module scope without "static" are global. Module "scope" effectively acts like a scope only when the keyword static is used.