From: klaas.holwerda <kho...@xs...> - 2005-12-28 21:13:59
|
Hi John, Do not forget to modify apps.dsw ( somewhere in bakefiles ) to add that option. And you are right about static initialization, trhis is a problem, having the following bindings: class wxart2d_BindingInit { public: wxart2d_BindingInit() { m_binding.GetBindingList()->Append(&m_binding); } wxart2d_Binding m_binding; }; wxart2d_BindingInit s_wxart2d_BindingInit; This last static instance is not called. ( it is inside a libary here ). If i move to my main program, it is called, but to early because the next wxLuaBindingList wxLuaBinding::sm_bindings is not yet initialized. First i don't understand why it is not called when it is part of my luawraps library. ( the library is linked, and i can a wxart2d_Binding dummy in my main, so it is there ). Next i don't know how to change the order of initialization of static objects. I will ask Michael now, maybe he knows a solution, Klaas John Labenski wrote: >>>No back to wxArt2D to see if it is the same there ;-) >>> >>> >>> >>just added the same switch, and now it is oke. >> >> > >Thats good, I have no idea how to fix static initialization problems >elegantly. I would have had use a brute force method that just rems >out static code (and anything that depends on it) until it worked. > > > |