|
From: <dan...@ya...> - 2002-05-07 04:45:46
|
--- Phil <ph...@fl...> wrote: > I've just upgraded to mingw-runtime
2.0, and I'm using MSYS
> 1.0.7-prerelease-2 to build the Lua 4.0 library. This has always worked
> flawlessly in the past. When I run make, I get this output:
>
> $ make
> cd include; make all
> make[1]: Entering directory `/d/lua/include'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/d/lua/include'
> cd src; make all
> make[1]: Entering directory `/d/lua/src'
> gcc -O2 -ansi -pedantic -Wall -I../include -c -o lapi.o lapi.c
> gcc -O2 -ansi -pedantic -Wall -I../include -c -o lcode.o lcode.c
> In file included from lzio.h:11,
> from llex.h:11,
> from lcode.h:10,
> from lcode.c:12:
> d:/msys/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/stdio.
> h:216: syntax error before `int'
> d:/msys/mingw/bin/../lib/gcc-lib/mingw32/2.95.3-7/../../../../include/stdio.
> h:370: syntax error before `int'
> make[1]: *** [lcode.o] Error 1
> make[1]: Leaving directory `/d/lua/src'
> make: *** [all] Error 2
>
> Line 216 of stdio.h looks like this:
> extern inline int vsnprintf (char* s, size_t n, const char* format,
> __VALIST arg)
> { return _vsnprintf ( s, n, format, arg); }
>
> Line 370 looks like this:
> extern inline int
> vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __VALIST arg)
> { return _vsnwprintf ( s, n, format, arg);}
>
> Does anyone have any idea as to what's wrong?
>
> Thanks, Philip Bock
>
My bad. "inline" is not ansi in C89. Change to __inline__ and should only
raise pedantic warning.
I'll fix in CVS.
Danny
>
> _______________________________________________________________
>
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: ban...@so...
> _______________________________________________
> MinGW-users mailing list
> Min...@li...
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
http://messenger.yahoo.com.au - Yahoo! Messenger
- A great way to communicate long-distance for FREE!
|