943,983 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1623
  • C++ RSS
Oct 10th, 2006
0

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

Expand Post »
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{
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster
edek is offline Offline
113 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Migration from Standard C++ To Visual C++
Next Thread in C++ Forum Timeline: print from a .txt file





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC