954,193 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how VC++ copes with 'static initialization dependency'?

I'd like to know how does Visual C++ copes with 'static initialization dependency' which is a problem which occurs when you have two(or more) files/ translation units, in one you have static global object and in other an reference to this object. When the second file will be compiled first there won't be the object it is referencing to created, yet. So, the order in which files are compiled matters. And there is something wierd for me: this problem doesn't occur in VC++ - somebody know WHY?
Dont't take it as a complaint! (-8{

edek
Junior Poster
113 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You