Euh, re-reading the subject line, there could be a confusing between a variable scope and mode of addressing.
A Global data, as stated in the subject line, can be declared in any file and does not need to be used with a #PRAGMA or any other special way.
You just have to declare it outside a function, basically.
It is totally dissociated from Global addressing and Global space of the microcontroller.
A
Global Data can be declared in any location of the memory (RAM, flash and/or EEPROM).
Initializing a Data via
Global addressing in flash is different and is what was described previously by both Daniel and me.
Alban.