lua-users home
lua-l archive

Re: "dynamic libraries not enabled"?

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


> 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;
}

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