lua-users home
lua-l archive

Re: Some problems about loading c library

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


You are very right!
If I did not add .def to the dll project, lua can not load the dll.
I do not know whether this happen because of C++Builder compiler or because of Windows OS?
When I get a lua5.1.lib from lua5.1.dll, must use the command "implib -a". If omit "-a", the dll project using "lua.5.1.lib" cannot compile successfully.

suluyu
2008年06月25日

发件人: Shmuel Zeigerman
发送时间: 2008年06月23日 16:25:44
收件人: Lua list
抄送:
主题: Re: Some problems about loading c library
You probably need to add a .def file (e.g., dllforlua.def) to your
project (this is what I do with C++ Builder in order to get rid of
leading underscores). Its contents:
EXPORTS
luaopen_dllforlua = _luaopen_dllforlua
--
Shmuel

AltStyle によって変換されたページ (->オリジナル) /