[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Some problems about loading c library
- From: "suluyu" <suluyu@...>
- Date: Wed, 25 Jun 2008 17:29:28 +0800
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.
发件人: 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