lua-users home
lua-l archive

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


Salve!

You are using incorrect version of Lua. I think Profiler was designed for Lua5.0, but you are using Lua 5.1(w6), and this version's API doesn't contain lua_dostring anymore. Proposed replacement (I think) is

status = (luaL_loadbuffer(L, string, strlen(string), name) || lua_pcall(L, 0, 0, 0));

AMDG,
 Antero Vipunen.

PA wrote:

Hello,

I'm trying to use LuaProfiler (2.0) on Mac OS X (10.3.9) with Lua 5.1 (work6).

[skipped]

lua50_profiler.c:

[skipped]

require( "profiler" )

profiler.start()

dyld: lua Undefined symbols:
./Library/Modules/profiler.so undefined reference to _lua_dostring expected to be defined in a dynamic image
Trace/BPT trap

Any ideas on what I might be doing wrong?