lua-users home
lua-l archive

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


On Tue, Dec 22, 2009 at 6:21 PM, James Hearon <j_hearon@hotmail.com> wrote:

> when I try to run the .lua file from c++, ex. luaL_dofile(L, "myfile.lua"),
> after compiling and trying to run, the app just exits.
> Without require in the .lua, I can run .lua from c++ no problem.

You might need to add something like:
   -Wl,-E -llua
to the linker flags when you build your application.

 - Jeff