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 Gr�tis - Internet r�pida e gr�tis. Instale o discador agora!
http://br.acesso.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users