lua-users home
lua-l archive

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


Thank you, that was a typo.

I have the same errors, but when I look in the c compilations I see this:
luasocket.c
c:\users\jb9\downloads\luasocket\src\luasocket.h(26) : fatal error C1189: #error :  Lua 5.2 requires LUA_COMPAT_MODULE defined for luaL_openlib

So I used this command to try to resolve that:
cl /MD /O2 /W3 /c /nologo /DLUA_COMPAT_MODULE /DWIN32_LEAN_AND_MEAN *.c

I still have the 5 unresolved externals for socket.lib

-----Original Message-----
From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of Thomas Buergel
Sent: Thursday, May 02, 2013 11:01 AM
To: Lua mailing list
Subject: RE: problem compiling luasocket for lua 5.2 for VS2012

> set INCLUDE=C:\Users\jb9\Downloads\lua-5.2.2\src;%INCLUDE%
> set C:\Users\jb9\Downloads\lua-5.2.2\src;LIB=%LIB%

Didn't you mean:

set LIB=C:\Users\jb9\Downloads\lua-5.2.2\src; %LIB%

?