Re: "dynamic libraries not enabled"?
[
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: 2011年1月21日 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;
}