lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Oct 7, 2015 at 6:36 PM, Elie Michel <elie.michel@exppad.com> wrote:
> 1) 5.1
>
> 2) CentOS 6.6
>
> 3) There is the big deal. It's right now intricated into dynamically linked
> libraries, and so on.
>
> To summarize, I have at the beginning something like this:
>
>     if (luaL_loadfile(L, "test.lua") || lua_pcall(L, 0, 0, 0)) {
>         cout << "Error: " << lua_tostring(L, -1) << endl;
>     }
>
>
> And then in a loop:
>
>     lua_getglobal(L, "foo");
>     luaT_pushudata(L, tensor, torch_Tensor);
>
>     if (lua_pcall(L, 1, 0, 0)) {
>         cout << "Error: " << lua_tostring(L, -1) << endl;
>     }
>
> Note that I use Torch. I will try to extract some standalone example, but
> that is non-trivial.
>
>

It looks as if you're getting back an error code rather than a
message. Perhaps one of the other return values is a string? Error 13
is "permission denied" (EACCES) in Linux errno.h, so that might shed
some light on the problem.

-- 
Sent from my Game Boy.