
29 Apr
2011
29 Apr
'11
8:19 a.m.
Would __declspec (selectany) be of any help?
From http://msdn.microsoft.com/en-US/library/5tkz6s71%28v=VS.80%29.aspx "A global data item can normally be initialized only once in an EXE or DLL project. selectany can be used in initializing global data defined by headers, when the same header appears in more than one source file. selectany is available in both the C and C++ compilers." I guess this could be exactly what we need. -Thorsten