logo       

Re: Problems compiling luacheia with Mingw: msg#00044

lang.lua.luacheia

Subject: Re: Problems compiling luacheia with Mingw

> I have some problems when compiling luacheia (CVS version) with
> MinGW-3.1.0-1 and MSYS-1.0.10

> # ./configure
> # make
> ...
> gcc -DHAVE_CONFIG_H -I. -I. -I../../..
> -I/home/serge/luacheia/lua-5.0.1/include -g -O2 -MT gusu.lo -MD -MP -MF
> .deps/gusu.Tpo -c gusu.c -DDLL_EXPORT -DPIC -o .libs/gusu.o
> gusu.c: In function `gusu_opendir':
> gusu.c:81: parse error before '-' token

This is an error in the header file winnt.h line 209

winnt.h:209:

#define INVALID_FILE_ATTRIBUTES (DWORD (-1))

should be

#define INVALID_FILE_ATTRIBUTES ((DWORD)(-1))

and has been reported to the mingw team and fixed in their cvs.

> [...]

> Can anybody help me? What compiler configuration is used to build
> official luacheia win32 binaries by developers?

Good question. I have been unable to build all of LuaCheia with
mingw/msys also. The problems seem libtool related since I can build
the individual projects, e.g., for luasockets. using the original (or
slightly hacked) makefiles, whereas the LuaCheia build for libsockets
doesn't work for me.

e



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise