[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (rc1) now available
- From: Hakki Dogusan <dogusanh@...>
- Date: Thu, 24 Nov 2011 18:03:11 +0200
Hi,
24-11-2011 17:17, Luiz Henrique de Figueiredo wrote:
Lua 5.2.0 (rc1) is now available at
[snip]
All feedback welcome. Thanks.
Thanks.
Compiling gives some errors and warnings with MinGW (gcc version 4.6.1
(tdm-1)) (on WinXP):
E:\lua-5.2.0>mingw32-make Makefile mingw
mingw32-make: Nothing to be done for `Makefile'.
cd src && mingw32-make mingw
mingw32-make[1]: Entering directory `E:/lua-5.2.0/src'
mingw32-make "LUA_A=lua52.dll" "LUA_T=lua.exe" \
"AR=gcc -shared -o" "RANLIB=strip --strip-unneeded" \
"SYSCFLAGS=-DLUA_BUILD_AS_DLL" "SYSLIBS=" "SYSLDFLAGS=-s" lua.exe
mingw32-make[2]: Entering directory `E:/lua-5.2.0/src'
...
...
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_BUILD_AS_DLL -c -o loadlib.o
loadlib.c
loadlib.c: In function 'setprogdir':
loadlib.c:171:3: error: unknown type name 'DWORD'
loadlib.c:172:3: error: unknown type name 'DWORD'
loadlib.c:172:3: warning: implicit declaration of function
'GetModuleFileNameA'
[-Wimplicit-function-declaration]
loadlib.c: In function 'pusherror':
loadlib.c:184:3: warning: implicit declaration of function
'GetLastError' [-Wimp
licit-function-declaration]
loadlib.c:186:3: warning: implicit declaration of function
'FormatMessageA' [-Wi
mplicit-function-declaration]
loadlib.c:186:22: error: 'FORMAT_MESSAGE_IGNORE_INSERTS' undeclared
(first use i
n this function)
loadlib.c:186:22: note: each undeclared identifier is reported only once
for eac
h function it appears in
loadlib.c:186:54: error: 'FORMAT_MESSAGE_FROM_SYSTEM' undeclared (first
use in t
his function)
loadlib.c: In function 'll_unloadlib':
loadlib.c:194:3: warning: implicit declaration of function 'FreeLibrary'
[-Wimpl
icit-function-declaration]
loadlib.c:194:16: error: 'HMODULE' undeclared (first use in this function)
loadlib.c:194:24: error: expected ')' before 'lib'
loadlib.c: In function 'll_load':
loadlib.c:199:3: error: unknown type name 'HMODULE'
loadlib.c:199:3: warning: implicit declaration of function
'LoadLibraryExA' [-Wi
mplicit-function-declaration]
loadlib.c:201:11: warning: comparison between pointer and integer
[enabled by de
fault]
loadlib.c:202:3: warning: return makes pointer from integer without a
cast [enab
led by default]
loadlib.c: In function 'll_sym':
loadlib.c:207:3: warning: implicit declaration of function
'GetProcAddress' [-Wi
mplicit-function-declaration]
loadlib.c:207:52: error: 'HMODULE' undeclared (first use in this function)
loadlib.c:207:60: error: expected ')' before 'lib'
mingw32-make[2]: *** [loadlib.o] Error 1
mingw32-make[2]: Leaving directory `E:/lua-5.2.0/src'
mingw32-make[1]: *** [mingw] Error 2
mingw32-make[1]: Leaving directory `E:/lua-5.2.0/src'
mingw32-make: *** [mingw] Error 2
--lhf
--
Regards,
Hakki Dogusan