Lua from svn repository - run examples

Hi!
In the beginning thanks for your reply!

It is a long time since I’ve asked my question, after that I’ve been moved to another project. So sorry for my late response.

I’ve checked your solution and it works (thank you very much!). The solution fixed the problem with “bad header in precompiled chunk”.

Unfortunately after that I encountered another problem. Now when lua is starting there is no error, but my Lua application doesn’t start, and the “at+lua=’’” command doesn’t work.

So I’ve done some investigations and I ascertained that function LUAW_PERFORM_LRUN (luaw_main.c) returns an error. The problem occurs during calling the following piece of code:

r = lua_pcall( L, 1, 0, 0);
	if( OK != r) {
		wip_debug(luaL_checkstring( L, -1));
		luaW_debug( "luaW_run", "ERROR", "Error %d when calling run(): \"%s\"", r, luaL_checkstring( L, -1));
		lua_pop( L, 1); /* pop error msg. */
		return r;
	}

The error message is: “…\kkb\fastrack\luanowa\trunk\oatlua\src-lua\sched.lua:127: attempt to call global ‘print’ (a nil value)”, and the function returns 2 instead of 0.

So I tried to temporarily define a print function in shed.lua. After that LUAW_PERFORM_LRUN returns 0 (OK), but my Lua application and “at+lua=’’” still doesn’t work.

Do you have any idea how to fix the problem?

Thank you in advance!
Chris