lua-users home
lua-l archive

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


Hi Milind,

> Dynamic libraries not enabled: check your lua installation

>From [1]: the message "dynamic libraries not enabled" comes from the
fallback code in loadlib.c and this code should not be reached if
LUA_USE_DLOPEN is defined.

I use LUA_USE_LINUX on OSX, but using LUA_USE_DLOPEN should be sufficient [2].

Paul.

[1] http://lua-users.org/lists/lua-l/2011-01/msg01185.html
[2] http://lua-users.org/lists/lua-l/2007-04/msg00068.html

On Wed, May 7, 2014 at 10:49 AM, Milind Gupta <milind.gupta@gmail.com> wrote:
> Hello,
>        I have made a C module for Lua 5.2.3. I am using Code::Blocks as my
> IDE to do all compilation. Here are the steps I follow:
>
> 1. I build Lua 5.2.3 as a dynamic library with an import library.
> 2. I use the import library to build the Lua interpreter.
> 3. I use the import library to build my C module.
> 4. I launch the interpreter with the lua dynamic library and my c module in
> the current directory.
>
> This whole process works well in windows and linux(ubuntu) but when I run
> the same process on a Mac I get this error as soon as I require my C module:
>
> Dynamic libraries not enabled: check your lua installation
>
> How can I fix this? Any help would be really appreciated.
>
> Thanks,
> Milind
>
>