<[EMAIL PROTECTED]>Yes it Linux - slackware 10.2<[EMAIL PROTECTED]>[EMAIL PROTECTED]>
It is strange indeed, what platform are you using? I'm guessing Linux?
[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>I just looked at the Makefiles in modules/lua and it looks like the
exact same object files are used for the lualib and the lua executable
so the code in loadlib.c should compile this #ifdefed code for both.
#if defined(LUA_DL_DLOPEN)
...
In the Makefile in apps/wxlua/src it uses this to compile lua, is this
what you did when you compile lua yourself?
lua:
@(cd $(WXLUA_DIR)/modules/lua && make linux)
[EMAIL PROTECTED]>
Yes, the actual command is:
cd /home/sk/wxLua/modules/lua && make linux
this produce binary lua and luac in /home/sk/wxLua/bin and is fine .
I also see a #ifdef LUA_USE_LINUX in /home/sk/wxLua/modules/lua/include/luaconf.h and suspect that LUA_USE_LINUX not defined as if it is defined then LUA_USE_READLINE should be enabled and I can use it in lua binary. And It also enable LUA_USE_DLOPEN. Then I commented the #ifdef line and #endif so it always true. (safe as I know I am running Linux); Now the lua binary has readline support. Strange enough, the wxlua-lua binary still not have the readline support and ofcourse still no go for loading DLOPEN.
<[EMAIL PROTECTED]>[EMAIL PROTECTED]>
S.KIEU
On Yahoo!7
Answers: Real people ask and answer questions on any topic.