[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: problem compiling luasocket for lua 5.2 for VS2012
- From: "Black, James A." <blackja@...>
- Date: Thu, 2 May 2013 10:50:54 -0400
I closed my console window and reopened it, and now I have this, in part due to I may have been including lua5.1 and 5.2, through different attempts, so I changed my build.bat to this, so I set the environment variable differently:
set INCLUDE=C:\Users\jb9\Downloads\lua-5.2.2\src;%INCLUDE%
set C:\Users\jb9\Downloads\lua-5.2.2\src;LIB=%LIB%
Creating library socket.lib and object socket.exp
inet.obj : error LNK2019: unresolved external symbol __imp__getaddrinfo@16 referenced in function _inet_global_getaddrinfo
tcp.obj : error LNK2001: unresolved external symbol __imp__getaddrinfo@16
inet.obj : error LNK2019: unresolved external symbol __imp__freeaddrinfo@4 referenced in function _inet_global_getaddrinfo
tcp.obj : error LNK2001: unresolved external symbol __imp__freeaddrinfo@4
inet.obj : error LNK2019: unresolved external symbol __imp__getnameinfo@28 referenced in function _inet_global_getaddrinfo
inet.obj : error LNK2019: unresolved external symbol _inet_ntop@16 referenced in function _inet_meth_getpeername
udp.obj : error LNK2001: unresolved external symbol _inet_ntop@16
udp.obj : error LNK2019: unresolved external symbol __imp__inet_pton@12 referenced in function _meth_sendto
socket.dll : fatal error LNK1120: 5 unresolved externals
C:\Users\jb9\Downloads\luasocket\src>link /DLL /OUT:mime.dll /base:0x67700000 /export:luaopen_mime_core mime.o msvcrt.lib lua5.2.lib
Microsoft (R) Incremental Linker Version 11.00.50727.1
Copyright (C) Microsoft Corporation. All rights reserved.
-----Original Message-----
From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On Behalf Of Luiz Henrique de Figueiredo
Sent: Thursday, May 02, 2013 9:58 AM
To: Lua mailing list
Subject: Re: problem compiling luasocket for lua 5.2 for VS2012
> buffer.obj : error LNK2019: unresolved external symbol _lua_tonumberx referenced in function _buffer_meth_receive
This means that you're not linking with Lua 5.2.