Home > Software engineering >  Vs2015 compile time how to confirm each global variable in c file location
Vs2015 compile time how to confirm each global variable in c file location

Time:12-18

First global variables such as a a.h g_temp, how to confirm the global variables that global variables, which is in front of the c file vs can confirm? Or by engineering environment can confirm?

CodePudding user response:

VS can open the output mapping file in connection option. The map

CodePudding user response:

You trying to say is the initialization sequence the same compilation unit between different files (documents) within the guarantee order does not guarantee that
So you can put your global variables as a class of ordinary members, and singleton pattern to ensure its global instance is only a,
Also can use COM IGlobalInterfaceTable directly registered within an interface for the next process through the same type are its ID
  • Related