>In my case, I obtain errors (undefined reference to `myVar') when I use extern in "global.h."
Are you forgetting the definition? I added a globals.c file that forces an absolute definition for myVar. If you don't have that definition somewhere, the linker won't be able to reference the object.>This may not be 100% but I always though of global
>and external variables as indicators to the linker
Technically there's no such thing as a global variable. What people usually mean by "global" is an object with file scope and external linkage which can be made visible in other scopes using an external declaration.
I'm not arguing with you but global variables must be an accepted misconception..
Try gooling global variables in C