lua-users home
lua-l archive

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

On 11/25/2011 12:03 AM, Hakki Dogusan wrote:
24-11-2011 17:17, Luiz Henrique de Figueiredo wrote:
Lua 5.2.0 (rc1) is now available at

All feedback welcome. 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
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_BUILD_AS_DLL -c -o loadlib.o

Yeah, the:

#if defined(LUA_DL_DLL)

needs to be after including luaconf.h

I am also seeing this for gcc 4.5.2 (MinGW) on WinXP:

liolib.c: In function 'f_seek':
liolib.c:544:3: warning: implicit declaration of function '_fseeki64'
liolib.c:548:5: warning: implicit declaration of function '_ftelli64'

On gcc 4.5.2 (MinGW), the two functions in stdio.h is protected by:

#if __MSVCRT_VERSION__ >= 0x800

Anyone compiled it on MinGW successfully?

Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia