Problem with starting Lua with QtCreator
-
Hi,
I try to run Lua scripts in QtCreator.
I did that to my .pro file (screen)but it crashes when I try to run:
void MainWindowT::initLUA()
{lua_State* pL=lua_open(); if(!pL) qFatal("LUA cannot be initialized."); luaL_openlibs(pL); luaL_dofile( pL,"hello.lua" );
}
at luaL_dofile( pL,"hello.lua" );.
U can see that error and pro gile at screen:
http://s2.ifotos.pl/img/1png_wpnqwrq.pngif I comment line with luaL_dofile it works.
IDK what to do,
Plz help me if u can. -
Hi,
Since the symbol is not found you are missing a library in your LIBS line