From: John L. <jla...@gm...> - 2005-12-30 04:09:48
|
On 12/29/05, klaas.holwerda <kho...@xs...> wrote: > Ha, you are talking about a lua script i think. My problem is the lua C > code. I can not debug into that code. > Is it generated without debug info?? Yes, it's not compiled with debug info. Why do you want to debug into lua? > >The "namespace" is a table where the contents of it are set by > >bindings. > > > Found it. What should happen if one calls a non existing function on a > name space? It's not found and the script errors out, calling the function terror(). > >I don't understand when you say the "next two become active"? Next two o= f what? > > > By the next two i mean that > > wxart2d_BindingInit s_wxart2d_BindingInit; > is seen suddenly and therefore the call to this from its construtor. > m_binding.GetBindingList()->Append(&m_binding); > > And thus the bindings are initialized properly. > Without any reference to the binding library in my exe/program code, the > whole binding library is skipped. Humm, the MSVC linker is too clever for its own good. But, the default wxWidgets binding works in VC 2003, are you sure this is really the case? > >What about, wxModule? I'll look into that this afternoon. If I > >remember correctly it does something very similar to gather up all the > >derived wxModule classes. > > > I am not so sure about this, at least i had to do trick to make sure one > module was intialized before the other. Still it works oke. wxModule is > realy meant to intialize things before the wxApp is starting. > I think it could help us. >> > > I don't have any problems using this > >mechanism in gcc in Linux, but I have yet to try to add my own > >bindings with msvc. > > > > > wxModule is not so much for static things, but it may solve adding > bindings before wxLuaState is used. > > >Can you reverse the order of linking the .o object files for your > >program and the libraries? > > > > > No CMake solves/writes all the makefiles for me. So... it works now? No need for a wxModule? Regards, John Labenski |