lua-users home
lua-l archive

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


Thanks.
But I think that's not the truth. I have done this with Borland C++ Builder
6.0 before, everything is OK. So I guess is this an unknown bug?

-----邮件原件-----
发件人: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br] 代表 Alex Queiroz
发送时间: 2006年11月16日 20:08
收件人: Lua list
主题: Re: application crashes while calling luaopen_io

Hallo,

On 11/16/06, missdeer <missdeer@gmail.com> wrote:
>
>
> 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..
>
> Any suggestion?
>

     You must call the luaopen_* functions as Lua functions, i.e.,
using lua_call().
Cheers,

-- 
-alex
http://www.ventonegro.org/