[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: "dynamic libraries not enabled"?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 21 Jan 2011 09:19:41 -0200
> To check if the issue is in LuaSQL, is there a very basic module that
> I could compile just to check that Lua is able to load modules in the
> absolute, or if it the problem is either with Lua itself or maybe uClinux?
Try this one:
/* dummy.c -- a minimal Lua library for testing dynamic loading */
#include <stdio.h>
#include "lua.h"
int luaopen_dummy (lua_State *L) {
puts("Hello from dummy");
return 0;
}
If that works, try
int luaopen_dummy (lua_State *L) {
puts("Hello from dummy");
lua_pushnil(L);
puts("Bye from dummy");
return 0;
}