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

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 113
Reputation: edek is an unknown quantity at this point 
Solved Threads: 0
edek's Avatar
edek edek is offline Offline
Junior Poster

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

 
0
  #1
Oct 10th, 2006
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{
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC