From: Marcos <mar...@ya...> - 2006-02-28 02:54:56
|
John, Sorry, my bad english, I'm brazilian. I'm compiling wxlua myself. I'am using the luasocket 2.0 binary files on win32 (win98). > I see you load compat-5.1.lua, wxLua is based on 5.0.2, has luasocket > been compiled for 5.1? No, luasocket was been compiled for 5.0.2, but under compat-5.1 package model. I download your wxLua installer e try ... the script is: --- dofile([[D:\lua\lua5\5.0\bin\compat-5.1.lua]] ) local http = require("socket.http") print(http.request) b, c, h = http.request("http://www.lua.org") print(b,c,h) --- I get this message with lua.exe and wxlua.exe --- wxLua: Error while running chunk compat-5.1.lua:130: error loading package `socket.core' (One of the library files needed to run this application cannot be found. ) --- Now I put lua50.dll (luasocket dependencie ) in /bin, and get this. ---- C:\App\wxLua\test\socket>C:\App\wxLua\bin\lua.exe http1.lua function: 00AC4780 C:\APP\WXLUA\BIN\LUA.EXE: not enough memory stack traceback: [C]: in function `request' http1.lua:4: in main chunk [C]: ? --- Note the module was loaded and http.request is a function. -------- Marcos W. _______________________________________________________ Yahoo! Acesso Grs - Internet rda e grs. Instale o discador agora! http://br.acesso.yahoo.com |