lua-users home
lua-l archive

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

> I am working on an application with MSVC7.1. I compiled the Lua 5.1.1 by
> myself, then tried to link static or dynamic library into my project, but it
> crashes while luaopen_io being called every time, even when I add the Lua
> source code to my project..

If you want to open all standard Lua libraries, just call luaL_openlibs.
If you want a different set of libraries, add an edited copy of linit.c to
your project.

Also, your application should not crash if you use Lua 5.1.1.

This is a FAQ. Can someone please update ?