[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua interpreter and mingw
- From: "Remo D." <rdentato@...>
- Date: Sat, 27 Dec 2003 12:34:43 +0100
Compiling Lua 5.0 under Windows with the mingw compiler (gcc 3.2) produces a
small bug in the stand-alone lua interpreter: messages directed to the
stderr (such as the copyright message, for instance) are deferred!
A quick fix is to add fflush(stderr) at the end of the l_message() function
(src/lua/lua.c:116), don't know if anyone has a better solution.
This does not happen with other Windows compilers, I've tried OpenWatcom,
Lcc-win32, Borland C++ 5.5, Microsoft VC++ 6.0 and Digital Mars C++ under
WinXP and Win98 (not in all the combinations!!).
Just in case it might be useful!
R.D.