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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to