| | |
how VC++ copes with 'static initialization dependency'?
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
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{
Dont't take it as a complaint! (-8{
![]() |
Similar Threads
- Why is the main method static? (Java)
- Help needed with static variabe initialization! (C++)
- Factory Design pattern implementation (C++)
- about static variable (Java)
- static ip? (Networking Hardware Configuration)
- Airport, static route, find ip - Please Help!!!? (Networking Hardware Configuration)
- Error Linking KeyLogger.exe (C++)
- static compile (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: Migration from Standard C++ To Visual C++
- Next Thread: print from a .txt file
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code compile compiler console conversion convert count data delete deploy dll download dynamic dynamiccharacterarray encryption error file format forms fstream function functions game givemetehcodez graph gui homeworkhelp iamthwee ifstream input int java lib library linkedlist linker list loop looping loops map math matrix memory microsoft newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg simple sorting string strings temperature template templates test text text-file tree url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets





