i am working with visual studio 2010. i use following code in some cpp files to run a function hundred times before the main function execute.
const int x = some_init_function()
but I found with visual studio, not every global x in init. i want to ask if vc has limitation on this construct?
note: in some_init_function is some code doing things such as registering. And the variable name is different in every cpp file.