From: John L. <jla...@gm...> - 2006-02-10 21:36:49
|
I hope I've solved the linking problem once and for all. You now have to call a single function for each binding you want to use in addition to linking to it. There are two flavors of the functions, XXX_init() and XXX_bind(const wxLuaState& ). The former function initializes the binding so that any wxLuaState created after initialization will automatically use the binding. The second binds it to the wxLuaState to be loaded on a per state basis. In you wxApp::Onit or before the first use of wxLua you call these functions. The names are based on the wx_rules.lua file naming so there shouldn't be any naming clashes. I recommend that you do not #include the binding header, since you'll also be #including wxluasetup.h (grrrr..!) so just use the extern keyword to make the functions known. extern bool wxLuaBinding_wx_init(); extern bool wxLuaBinding_wxstc_init(); Everything, all sample apps, seem to work in MSW using MSVS Express 2005. ---------------------- Secondly coroutines now work properly by sharing the necessary data among multiple wxLuaStates. Regards, John Labenski |